Home
last modified time | relevance | path

Searched refs:JSONStringer (Results 1 – 5 of 5) sorted by relevance

/libcore/json/src/test/java/libcore/org/json/
DJSONStringerTest.java24 import org.json.JSONStringer;
33 assertNull(new JSONStringer().toString()); in testEmptyStringer()
37 JSONStringer stringer = new JSONStringer(); in testValueJSONNull()
45 JSONStringer stringer = new JSONStringer(); in testEmptyObject()
52 JSONStringer stringer = new JSONStringer(); in testEmptyArray()
59 JSONStringer stringer = new JSONStringer(); in testArray()
71 JSONStringer stringer = new JSONStringer(); in testValueObjectMethods()
81 JSONStringer stringer = new JSONStringer(); in testKeyValue()
101 JSONStringer stringer = new JSONStringer(); in testNumericRepresentations()
111 new JSONStringer().array().value(Double.NaN); in testWeirdNumbers()
[all …]
/libcore/json/src/main/java/org/json/
DJSONStringer.java62 public class JSONStringer { class
126 public JSONStringer() { in JSONStringer() method in JSONStringer
131 JSONStringer(int indentSpaces) { in JSONStringer() method in JSONStringer
143 public JSONStringer array() throws JSONException { in array()
152 public JSONStringer endArray() throws JSONException { in endArray()
162 public JSONStringer object() throws JSONException { in object()
171 public JSONStringer endObject() throws JSONException { in endObject()
180 JSONStringer open(Scope empty, String openBracket) throws JSONException { in open()
195 JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException { in close()
236 public JSONStringer value(Object value) throws JSONException { in value()
[all …]
DJSONArray.java568 JSONStringer stringer = new JSONStringer(); in join()
569 stringer.open(JSONStringer.Scope.NULL, ""); in join()
576 stringer.close(JSONStringer.Scope.NULL, JSONStringer.Scope.NULL, ""); in join()
586 JSONStringer stringer = new JSONStringer(); in toString()
607 JSONStringer stringer = new JSONStringer(indentSpaces); in toString()
613 void writeTo(JSONStringer stringer) throws JSONException { in writeTo()
DJSONObject.java701 JSONStringer stringer = new JSONStringer(); in toString()
725 JSONStringer stringer = new JSONStringer(indentSpaces); in toString()
731 void writeTo(JSONStringer stringer) throws JSONException { in writeTo()
778 JSONStringer stringer = new JSONStringer(); in quote()
779 stringer.open(JSONStringer.Scope.NULL, ""); in quote()
781 stringer.close(JSONStringer.Scope.NULL, JSONStringer.Scope.NULL, ""); in quote()
/libcore/
Dnon_openjdk_java_files.bp71 "json/src/main/java/org/json/JSONStringer.java",