public class JSONObject extends Object implements JSON
Modifier and Type | Class and Description |
---|---|
static class |
JSONObject.Array
An array of objects.
|
static class |
JSONObject.KVMap
A map whose key or value can be JSON.
|
ARRAY_EMPTY, ARRAY_END, ARRAY_START, FIELD_SEPARATOR, ID_MARKER, IOR_SEPARTOR, MEMBER_SEPARATOR, NEWLINE, NULL_LITERAL, OBJECT_END, OBJECT_START, QUOTE, REF_MARKER, SPACE, VALUE_SEPARATOR
Constructor and Description |
---|
JSONObject(String type,
Object id,
boolean ref) |
public void write(PrintWriter writer)
public StringBuilder asString(int indent)
JSON
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.