Searched refs:JSONArray (Results 1 - 9 of 9) sorted by relevance

/libcore/json/src/test/java/org/json/
H A DJSONArrayTest.java30 JSONArray array = new JSONArray();
54 assertNull(array.toJSONObject(new JSONArray()));
58 JSONArray a = new JSONArray();
59 JSONArray b = new JSONArray();
76 JSONArray array = new JSONArray();
102 JSONArray othe
[all...]
H A DJSONObjectTest.java44 assertNull(object.toJSONArray(new JSONArray()));
452 JSONArray a = new JSONArray();
530 JSONArray names = new JSONArray();
535 JSONArray array = object.toJSONArray(names);
550 JSONArray names = new JSONArray();
556 JSONArray array = object.toJSONArray(names);
582 JSONArray arra
[all...]
H A DParsingTest.java220 private JSONArray array(Object... elements) {
221 return new JSONArray(Arrays.asList(elements));
249 if (input instanceof JSONArray) {
250 JSONArray array = (JSONArray) input;
H A DSelfUseTest.java77 private final JSONArray array = new JSONArray() {
78 @Override public JSONArray put(int index, Object value) throws JSONException {
209 JSONArray values = new JSONArray();
H A DJSONStringerTest.java231 JSONArray array = new JSONArray();
312 JSONArray array = new JSONArray();
H A DJSONTokenerTest.java579 JSONArray array = (JSONArray) tokener.nextValue();
585 JSONArray array = (JSONArray) tokener.nextValue();
/libcore/json/src/main/java/org/json/
H A DJSONArray.java27 * {@link JSONObject JSONObjects}, other {@link JSONArray JSONArrays}, Strings,
32 * <p>{@code JSONArray} has the same type coercion behavior and
47 public class JSONArray { class
52 * Creates a {@code JSONArray} with no values.
54 public JSONArray() { method in class:JSONArray
59 * Creates a new {@code JSONArray} by copying all values from the given
67 public JSONArray(Collection copyFrom) { method in class:JSONArray
74 * Creates a new {@code JSONArray} with values from the next array in the
78 * {@code JSONArray}.
80 * {@code JSONArray}
82 public JSONArray(JSONTokener readFrom) throws JSONException { method in class:JSONArray
102 public JSONArray(String json) throws JSONException { method in class:JSONArray
[all...]
H A DJSONObject.java28 * Values may be any mix of {@link JSONObject JSONObjects}, {@link JSONArray
247 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
285 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
300 if (current instanceof JSONArray) {
301 JSONArray array = (JSONArray) current;
304 JSONArray array = new JSONArray();
538 * JSONArray}.
541 * JSONArray}
[all...]
H A DJSONStringer.java26 * Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most
48 * {@link JSONArray#toString(int)}.
222 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
232 if (value instanceof JSONArray) {
233 ((JSONArray) value).writeTo(this);

Completed in 2069 milliseconds