HomeSort by relevance Sort by last modified time
    Searched refs:JSONObject (Results 1 - 25 of 43) sorted by null

1 2

  /libcore/json/src/test/java/org/json/
JSONObjectTest.java 37 JSONObject object = new JSONObject();
106 JSONObject a = new JSONObject();
107 JSONObject b = new JSONObject();
115 JSONObject object = new JSONObject();
139 JSONObject object = new JSONObject();
    [all...]
ParsingTest.java 40 assertParsed(JSONObject.NULL, "null");
41 assertParsed(JSONObject.NULL, "NULL");
224 private JSONObject object(Object... keyValuePairs) throws JSONException {
225 JSONObject result = new JSONObject();
256 } else if (input instanceof JSONObject) {
257 JSONObject object = (JSONObject) input;
JSONStringerTest.java 34 stringer.value(JSONObject.NULL);
227 assertEquals("\"" + escaped + "\"", JSONObject.quote(original));
241 JSONObject object = new JSONObject();
327 JSONObject object = new JSONObject();
JSONArrayTest.java 140 array.put(0, JSONObject.NULL);
145 assertEquals(JSONObject.NULL, array.get(0));
161 assertEquals(JSONObject.NULL, array.opt(0));
183 assertEquals(JSONObject.NULL, array.get(1));
309 array.put(new JSONObject(Collections.singletonMap("x", 6)));
332 JSONObject object = values.toJSONObject(keys);
351 JSONObject object = values.toJSONObject(keys);
363 JSONObject object = values.toJSONObject(keys);
374 JSONObject object = values.toJSONObject(keys);
381 keys.put(JSONObject.NULL)
    [all...]
SelfUseTest.java 42 private final JSONObject object = new JSONObject() {
43 @Override public JSONObject put(String name, Object value) throws JSONException {
  /frameworks/volley/src/com/android/volley/toolbox/
JsonObjectRequest.java 26 import org.json.JSONObject;
31 * A request for retrieving a {@link JSONObject} response body at a given URL, allowing for an
32 * optional {@link JSONObject} to be passed in as part of the request body.
34 public class JsonObjectRequest extends JsonRequest<JSONObject> {
40 * @param jsonRequest A {@link JSONObject} to post with the request. Null is allowed and
45 public JsonObjectRequest(int method, String url, JSONObject jsonRequest,
46 Listener<JSONObject> listener, ErrorListener errorListener) {
55 * @see #JsonObjectRequest(int, String, JSONObject, Listener, ErrorListener)
57 public JsonObjectRequest(String url, JSONObject jsonRequest, Listener<JSONObject> listener
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
JsonBackedSuggestionExtras.java 19 import org.json.JSONObject;
28 * SuggestionExtras taking values from a {@link JSONObject}.
33 private final JSONObject mExtras;
37 mExtras = new JSONObject(json);
46 mExtras = new JSONObject();
50 mExtras.put(column, value == null ? JSONObject.NULL : value);
  /development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/client/
UserTest.java 22 import org.json.JSONObject;
41 JSONObject jsonObj = new JSONObject();
  /external/webkit/Source/JavaScriptCore/runtime/
JSONObject.h 35 class JSONObject : public JSObjectWithGlobalObject {
37 JSONObject(JSGlobalObject*, Structure*);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
IncludedDependenciesTest.java 3 import org.json.JSONObject;
17 assertEquals("value", new JSONObject("{'name':'value'}").getString("name"));
  /libcore/json/src/main/java/org/json/
JSONObject.java 28 * Values may be any mix of {@link JSONObject JSONObjects}, {@link JSONArray
52 * coerced, the sentinel value {@link JSONObject#NULL} is coerced to the
68 * JSONObject#NULL}. In particular, calling {@code put(name, null)} removes the
69 * named entry from the object but {@code put(name, JSONObject.NULL)} stores an
70 * entry whose value is {@code JSONObject.NULL}.
78 public class JSONObject {
109 * Creates a {@code JSONObject} with no name/value mappings.
111 public JSONObject() {
116 * Creates a new {@code JSONObject} by copying all name/value mappings from
124 public JSONObject(Map copyFrom)
    [all...]
JSONArray.java 27 * {@link JSONObject JSONObjects}, other {@link JSONArray JSONArrays}, Strings,
28 * Booleans, Integers, Longs, Doubles, {@code null} or {@link JSONObject#NULL}.
33 * optional/mandatory accessors as {@link JSONObject}. See that class'
38 * JSONObject#NULL}. In particular, {@code get} fails if the requested index
39 * holds the null reference, but succeeds if it holds {@code JSONObject.NULL}.
158 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
159 * Integer, Long, Double, {@link JSONObject#NULL}, or {@code null}. May
221 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
222 * Integer, Long, Double, {@link JSONObject#NULL}, or {@code null}. May
241 * is the {@code null} reference or {@link JSONObject#NULL}
    [all...]
JSONStringer.java 26 * Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most
29 * JSONObject object = ...
47 * output. To encode indented output, use {@link JSONObject#toString(int)} or
105 * JSONObject.quote() only. Not used for JSON encoding.
222 * @param value a {@link JSONObject}, {@link JSONArray}, String, Boolean,
236 } else if (value instanceof JSONObject) {
237 ((JSONObject) value).writeTo(this);
245 || value == JSONObject.NULL) {
249 out.append(JSONObject.numberToString((Number) value));
284 out.append(JSONObject.numberToString(value))
    [all...]
  /development/samples/Wiktionary/src/com/example/android/wiktionary/
SimpleWikiHelper.java 27 import org.json.JSONObject;
148 JSONObject response = new JSONObject(content);
149 JSONObject query = response.getJSONObject("query");
150 JSONObject pages = query.getJSONObject("pages");
151 JSONObject page = pages.getJSONObject((String) pages.keys().next());
153 JSONObject revision = revisions.getJSONObject(0);
ExtendedWikiHelper.java 21 import org.json.JSONObject;
208 JSONObject response = new JSONObject(content);
209 JSONObject query = response.getJSONObject("query");
211 JSONObject word = random.getJSONObject(0);
  /development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
SimpleWikiHelper.java 27 import org.json.JSONObject;
155 JSONObject response = new JSONObject(content);
156 JSONObject query = response.getJSONObject("query");
157 JSONObject pages = query.getJSONObject("pages");
158 JSONObject page = pages.getJSONObject((String) pages.keys().next());
160 JSONObject revision = revisions.getJSONObject(0);
  /external/chromium/chrome/common/extensions/docs/examples/apps/hello-java/
HelloLicenseServlet.java 24 import com.google.appengine.repackaged.org.json.JSONObject;
94 JSONObject json = new JSONObject(file);
  /external/chromium/chrome/common/extensions/docs/examples/apps/hello-java/workspace/HelloLicense/src/com/example/
HelloLicenseServlet.java 24 import com.google.appengine.repackaged.org.json.JSONObject;
94 JSONObject json = new JSONObject(file);
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
RawContact.java 21 import org.json.JSONObject;
140 public JSONObject toJSONObject() {
141 JSONObject json = new JSONObject();
172 Log.i(TAG, "Error converting RawContact to JSONObject" + ex.toString());
202 * @param user The JSONObject containing user data
205 public static RawContact valueOf(JSONObject contact) {
NetworkUtilities.java 36 import org.json.JSONObject;
163 // Convert our list of User objects into a list of JSONObject
164 List<JSONObject> jsonContacts = new ArrayList<JSONObject>();
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
AutomaticActivity.java 29 import org.json.JSONObject;
139 JSONObject mOutputJson = null;
140 JSONObject mInputJson = null;
164 mInputJson = new JSONObject(content.toString());
174 mOutputJson = new JSONObject();
  /prebuilts/misc/common/json/
json-prebuilt.jar 
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nls/
MockListener.java 29 import org.json.JSONObject;
144 JSONObject payload = new JSONObject();
  /external/webkit/Tools/Scripts/webkitpy/thirdparty/simplejson/
decoder.py 118 def JSONObject(match, context, _w=WHITESPACE.match):
158 pattern(r'{')(JSONObject)
187 JSONObject,
  /external/robolectric/lib/main/
json-20080701.jar 

Completed in 721 milliseconds

1 2