public abstract class JSON extends Object
A JSON document for which fields can be added and which can be rendered into
a String.
| Constructor and Description |
|---|
JSON() |
| Modifier and Type | Method and Description |
|---|---|
static JSONObject |
create()
Creates a new instance.
|
static JSONArray |
createArray() |
static JSONObject |
forToString(Object obj) |
abstract void |
print()
Prints this document to standard out.
|
abstract String |
render() |
abstract String |
render(int indentSize) |
public static JSONObject create()
public static JSONArray createArray()
public static JSONObject forToString(Object obj)
public abstract String render()
public abstract String render(int indentSize)
indentSize - Defines how many spaces are to be inserted at the beginning of
ever line.public abstract void print()
Prints this document to standard out.
Copyright © 2018. All rights reserved.