public class JSONArrays
extends java.lang.Object
| Constructor and Description |
|---|
JSONArrays() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends JSONArray,O extends JSONObject> |
clone(java.util.List<java.lang.Object> values,
JSONBuilder<A,O> builder) |
static java.lang.String |
toString(JSONArray jArr) |
static java.lang.String |
toString(JSONArray jArr,
int indentFactor,
int indent) |
static void |
write(JSONArray jArr,
java.lang.Appendable buf)
Make a JSON text of this JSONArray.
|
static void |
write(JSONArray jArr,
java.lang.Appendable buf,
int indentFactor,
int indent)
Make a prettyprinted JSON text of this JSONArray.
|
public static <A extends JSONArray,O extends JSONObject> A clone(java.util.List<java.lang.Object> values, JSONBuilder<A,O> builder) throws JSONException
JSONExceptionpublic static java.lang.String toString(JSONArray jArr)
public static java.lang.String toString(JSONArray jArr, int indentFactor, int indent)
public static final void write(JSONArray jArr, java.lang.Appendable buf, int indentFactor, int indent) throws java.io.IOException
indentFactor - The number of spaces to add to each level of indentation.indent - The indention of the top level.java.io.IOExceptionpublic static void write(JSONArray jArr, java.lang.Appendable buf) throws java.io.IOException
Warning: This method assumes that the data structure is acyclical.
java.io.IOException