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) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
asString(int indent)
Render into a string buffer.
|
static void |
main(String[] args) |
void |
set(String key,
Object value) |
String |
toString() |
void |
write(PrintWriter writer) |
public void write(PrintWriter writer)
public StringBuilder asString(int indent)
JSON
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.