/external/v8/test/mjsunit/ |
mirror-null.js | 31 // Create mirror and JSON representation. 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 48 // Parse JSON representation and check. 49 var fromJSON = eval('(' + json + ')');
|
mirror-undefined.js | 31 // Create mirror and JSON representation. 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 48 // Parse JSON representation and check. 49 var fromJSON = eval('(' + json + ')');
|
mirror-unresolved-function.js | 45 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 47 JSON.stringify(serializer.serializeReferencedObjects())); 68 // Parse JSON representation of unresolved functions and check. 69 var fromJSON = eval('(' + json + ')'); 70 assertEquals('function', fromJSON.type, 'Unexpected mirror type in JSON'); 71 assertEquals('Function', fromJSON.className, 'Unexpected mirror class name in JSON'); 72 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 73 assertEquals('undefined', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); 74 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON'); [all...] |
/libcore/json/src/main/java/org/json/ |
JSONException.java | 17 package org.json; 19 // Note: this class was written without inspecting the non-free org.json sourcecode. 22 * Thrown to indicate a problem with the JSON API. Such problems include: 26 * <li>Use of numeric types not available to JSON, such as {@link
|
JSON.java | 17 package org.json; 19 class JSON { 21 * Returns the input if it is a JSON-permissable value; throws otherwise.
|
JSONArray.java | 17 package org.json; 23 // Note: this class was written without inspecting the non-free org.json sourcecode. 91 throw JSON.typeMismatch(object, "JSONArray"); 96 * Creates a new {@code JSONArray} with values from the JSON string. 98 * @param json a JSON-encoded string containing an array. 102 public JSONArray(String json) throws JSONException { 103 this(new JSONTokener(json)); 131 values.add(JSON.checkDouble(value)); 230 JSON.checkDouble(((Number) value).doubleValue()) [all...] |
JSONStringer.java | 17 package org.json; 23 // Note: this class was written without inspecting the non-free org.json sourcecode. 30 * String json = object.toString();</pre> 32 * <p>Stringers only encode well-formed JSON strings. In particular: 43 * Calls that would result in a malformed JSON string will fail with a 105 * JSONObject.quote() only. Not used for JSON encoding. 420 * Returns the encoded JSON string.
|
JSONTokener.java | 17 package org.json; 19 // Note: this class was written without inspecting the non-free org.json sourcecode. 22 * Parses a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 26 * String json = "{" 31 * JSONObject object = (JSONObject) new JSONTokener(json).nextValue(); 35 * <p>For best interoperability and performance use JSON that complies with 38 * input string was valid JSON. All of the following syntax errors will be 55 * <p>Each tokener may be used to parse a single JSON string. Instances of this 64 /** The input JSON. */ 74 * @param in JSON encoded string. Null is not permitted and will yield [all...] |
JSONObject.java | 17 package org.json; 24 // Note: this class was written without inspecting the non-free org.json sourcecode. 90 * <li>are included in the encoded JSON string. 158 throw JSON.typeMismatch(object, "JSONObject"); 163 * Creates a new {@code JSONObject} with name/value mappings from the JSON 166 * @param json a JSON-encoded string containing an object. 170 public JSONObject(String json) throws JSONException { 171 this(new JSONTokener(json)); 216 nameValuePairs.put(checkName(name), JSON.checkDouble(value)) [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonScope.java | 17 package com.android.json.stream; 20 * Lexical scoping elements within a JSON reader or writer.
|
JsonToken.java | 17 package com.android.json.stream; 20 * A structure, name or value type in a JSON-encoded string. 25 * The opening of a JSON array. Written using {@link JsonWriter#beginObject} 31 * The closing of a JSON array. Written using {@link JsonWriter#endArray} 37 * The opening of a JSON object. Written using {@link JsonWriter#beginObject} 43 * The closing of a JSON object. Written using {@link JsonWriter#endObject} 49 * A JSON property name. Within objects, tokens alternate between names and 56 * A JSON string. 61 * A JSON number represented in this API by a Java {@code double}, {@code 67 * A JSON {@code true} or {@code false} [all...] |
JsonWriter.java | 17 package com.android.json.stream; 26 * Writes a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 31 * <h3>Encoding JSON</h3> 32 * To encode your data as JSON, create a new {@code JsonWriter}. Each JSON 53 * "text": "How do I write JSON on Android?", 116 * <p>Each {@code JsonWriter} may be used to write a single JSON stream. 118 * malformed JSON string will fail with an {@link IllegalStateException}. 142 * Creates a new instance that writes a JSON-encoded stream to {@code out}. 343 * @throws IOException if the JSON document is incomplete [all...] |
JsonReader.java | 17 package com.android.json.stream; 26 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 30 * depth-first order, the same order that they appear in the JSON document. 31 * Within JSON objects, name/value pairs are represented by a single token. 33 * <h3>Parsing JSON</h3> 34 * To create a recursive descent parser for your own JSON streams, first create 37 * <p>Next, create handler methods for each structure in your JSON text. You'll 67 * "text": "How do I read JSON on Android?", 159 * be read as numbers. For example, both elements of the JSON array {@code 165 * in JSON [all...] |
/packages/experimental/procstatlog/ |
procstatreport.py | 19 import json namespace 201 "id_js": json.write("total_cpu"), 203 "filename_js": json.write(files_url + "/total_cpu.csv"), 204 "options_js": json.write({ 243 "id_js": json.write("cpu_speed"), 245 "filename_js": json.write(files_url + "/cpu_speed.csv"), 246 "options_js": json.write({ 275 "id_js": json.write("context_switches"), 277 "filename_js": json.write(files_url + "/context_switches.csv"), 278 "options_js": json.write( [all...] |
/libcore/json/src/test/java/org/json/ |
JSONStringerTest.java | 17 package org.json; 22 * This black box test was written without inspecting the non-free org.json sourcecode.
|
ParsingTest.java | 17 package org.json; 232 private void assertParsed(String message, Object expected, String json) throws JSONException { 233 Object actual = new JSONTokener(json).nextValue(); 236 assertEquals("For input \"" + json + "\" " + message, expected, actual); 239 private void assertParsed(Object expected, String json) throws JSONException { 240 assertParsed("", expected, json);
|
SelfUseTest.java | 17 package org.json; 26 * <p>This black box test was written without inspecting the non-free org.json
|
JSONArrayTest.java | 17 package org.json; 25 * This black box test was written without inspecting the non-free org.json sourcecode.
|
JSONTokenerTest.java | 17 package org.json; 23 * This black box test was written without inspecting the non-free org.json sourcecode. 334 assertEquals("The character " + name + " is not whitespace according to the JSON spec.", 401 // JSON requires 4 hex characters after a unicode escape
|
JSONObjectTest.java | 17 package org.json; 32 * This black box test was written without inspecting the non-free org.json sourcecode. 109 // JSON object doesn't override either equals or hashCode (!) [all...] |
/external/v8/src/ |
debug.cc | 2619 Handle<Object> json = Execution::TryCall(Handle<JSFunction>::cast(fun), local [all...] |
/external/webkit/WebKit/chromium/src/js/ |
DebuggerAgent.js | 874 * @param {Object} script Json object representing script. 942 * @param {Object} script Script json object from the debugger message. 1031 * @param {Object} stackFrame Frame json object from "backtrace" response [all...] |
/external/v8/test/cctest/ |
test-debug.cc | 5862 v8::Handle<v8::String> json = message.GetJSON(); local 5873 v8::Handle<v8::String> json = message.GetJSON(); local [all...] |
/prebuilt/sdk/10/ |
android.jar | |
/prebuilt/sdk/8/ |
android.jar | |