net.jangaroo.jooc.json.Json Maven / Gradle / Ivy
/*
* Copyright (c) 2009, CoreMedia AG, Hamburg. All rights reserved.
*/
package net.jangaroo.jooc.json;
/**
*
*/
public interface Json {
Object get(String property);
void set(String property, Object value);
/**
* Make a pretty-printed JSON text of this JSONObject.
*
* Warning: This method assumes that the data structure is acyclical.
*
* @param indentFactor The number of spaces to add to each level of
* indentation.
* @param indent The indentation of the top level.
* @return a printable, displayable, transmittable
* representation of the object, beginning
* with {
(left brace) and ending
* with }
(right brace).
*/
String toString(int indentFactor, int indent);
}