Package net.jangaroo.jooc.json
Interface Json
-
- All Known Implementing Classes:
JsonArray,JsonObject
public interface Json
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectget(String property)voidset(String property, Object value)StringtoString(int indentFactor, int indent)Make a pretty-printed JSON text of this JSONObject.
-
-
-
Method Detail
-
toString
String toString(int indentFactor, int indent)
Make a pretty-printed JSON text of this JSONObject.Warning: This method assumes that the data structure is acyclical.
- Parameters:
indentFactor- The number of spaces to add to each level of indentation.indent- The indentation of the top level.- Returns:
- a printable, displayable, transmittable
representation of the object, beginning
with
{(left brace) and ending with}(right brace).
-
-