Home
last modified time | relevance | path

Searched refs:JSONArray (Results 1 – 12 of 12) sorted by relevance

/libcore/json/src/test/java/org/json/
DJSONArrayTest.java31 JSONArray array = new JSONArray(); in testEmptyArray()
55 assertNull(array.toJSONObject(new JSONArray())); in testEmptyArray()
59 JSONArray a = new JSONArray(); in testEqualsAndHashCode()
60 JSONArray b = new JSONArray(); in testEqualsAndHashCode()
77 JSONArray array = new JSONArray(); in testBooleans()
103 JSONArray other = new JSONArray(); in testBooleans()
112 other = new JSONArray(); in testBooleans()
127 JSONArray array = new JSONArray(); in testCoerceStringToBoolean()
139 JSONArray array = new JSONArray(); in testNulls()
181 JSONArray array = new JSONArray("[\"null\",null]"); in testParseNullYieldsJSONObjectNull()
[all …]
DJSONObjectTest.java47 assertNull(object.toJSONArray(new JSONArray())); in testEmptyObject()
455 JSONArray a = new JSONArray(); in testJSONObjects()
533 JSONArray names = new JSONArray(); in testToJSONArray()
538 JSONArray array = object.toJSONArray(names); in testToJSONArray()
553 JSONArray names = new JSONArray(); in testToJSONArrayMissingNames()
559 JSONArray array = object.toJSONArray(names); in testToJSONArrayMissingNames()
585 JSONArray array = new JSONArray(); in testToJSONArrayEndsUpEmpty()
596 JSONArray names = new JSONArray(); in testToJSONArrayNonString()
602 JSONArray array = object.toJSONArray(names); in testToJSONArrayNonString()
778 JSONArray array = object.getJSONArray("foo"); in testAccumulateMutatesInPlace()
[all …]
DSelfUseTest.java77 private final JSONArray array = new JSONArray() {
78 @Override public JSONArray put(int index, Object value) throws JSONException {
209 JSONArray values = new JSONArray(); in testToJSONObject()
DParsingTest.java220 private JSONArray array(Object... elements) { in array()
221 return new JSONArray(Arrays.asList(elements)); in array()
249 if (input instanceof JSONArray) { in canonicalize()
250 JSONArray array = (JSONArray) input; in canonicalize()
DJSONStringerTest.java231 JSONArray array = new JSONArray(); in testJSONArrayAsValue()
312 JSONArray array = new JSONArray(); in testMaxDepthWithArrayValue()
DJSONTokenerTest.java578 JSONArray array = (JSONArray) tokener.nextValue(); in testBomIgnoredAsFirstCharacterOfDocument()
584 JSONArray array = (JSONArray) tokener.nextValue(); in testBomTreatedAsCharacterInRestOfDocument()
/libcore/json/src/main/java/org/json/
DJSONArray.java49 public class JSONArray { class
56 public JSONArray() { in JSONArray() method in JSONArray
69 public JSONArray(Collection copyFrom) { in JSONArray() method in JSONArray
87 public JSONArray(JSONTokener readFrom) throws JSONException { in JSONArray() method in JSONArray
93 if (object instanceof JSONArray) { in JSONArray()
94 values = ((JSONArray) object).values; in JSONArray()
107 public JSONArray(String json) throws JSONException { in JSONArray() method in JSONArray
114 public JSONArray(Object array) throws JSONException { in JSONArray() method in JSONArray
137 public JSONArray put(boolean value) { in put()
149 public JSONArray put(double value) throws JSONException { in put()
[all …]
DJSONObject.java305 if (current instanceof JSONArray) { in accumulate()
306 JSONArray array = (JSONArray) current; in accumulate()
309 JSONArray array = new JSONArray(); in accumulate()
331 final JSONArray array; in append()
332 if (current instanceof JSONArray) { in append()
333 array = (JSONArray) current; in append()
335 JSONArray newArray = new JSONArray(); in append()
583 public JSONArray getJSONArray(String name) throws JSONException { in getJSONArray()
585 if (object instanceof JSONArray) { in getJSONArray()
586 return (JSONArray) object; in getJSONArray()
[all …]
DJSONTokener.java404 private JSONArray readArray() throws JSONException { in readArray()
405 JSONArray result = new JSONArray(); in readArray()
DJSONStringer.java232 if (value instanceof JSONArray) { in value()
233 ((JSONArray) value).writeTo(this); in value()
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java29 import org.json.JSONArray;
179 new JSONArray(data); in parse()
/libcore/
Dnon_openjdk_java_files.mk233 json/src/main/java/org/json/JSONArray.java \