public class JSONObjectImpl extends JSONObject
| Constructor and Description |
|---|
JSONObjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
add(String key,
Object value)
Add a new entry to this JSON.
|
void |
print()
Prints this document to standard out.
|
String |
render() |
String |
render(int indentSize) |
String |
toString() |
create, createArray, forToStringpublic JSONObject add(String key, Object value)
JSONObjectAdd a new entry to this JSON.
Note that value may be another JSON instance.
add in class JSONObjectkey - The key for the value.value - Value for the key. Can be a generic object, a string, or an
instance of JSON or JSONArraypublic String render()
render in class JSONObjectpublic String render(int indentSize)
render in class JSONObjectindentSize - Defines how many spaces are to be inserted at the beginning of
ever line.public void print()
JSONPrints this document to standard out.
Copyright © 2018. All rights reserved.