/external/chromium_org/v8/test/mjsunit/regress/ |
regress-3135.js | 6 assertEquals('{"x":1}', JSON.stringify({ x : 1 }, ["x", 1, "x", 1])); 7 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, ["x", 1, "x", 1])); 8 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, ["1", 1, "1", 1])); 9 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, [1, "1", 1, "1"])); 14 assertEquals('{"x":2}', JSON.stringify(getter_obj, ["x", "y", "x"])); 18 assertEquals('{"y":4,"x":3}', JSON.stringify({ x : 3, y : 4}, ["y", "x"])); 20 JSON.stringify({ x : 3, y : 4, 1 : 2 }, ["y", 1, "x"])); 26 JSON.stringify(a, ["__proto__", "x", "__proto__"])); 29 JSON.stringify(a, ["__proto__", "x"])); 31 assertEquals('{}', JSON.stringify(b)) [all...] |
regress-361025.js | 9 JSON.parse('{"a":2600753951}');
|
regress-2374.js | 30 var obj = JSON.parse(msg); 31 var obj2 = JSON.parse(msg); 33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2)); 34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_pass1.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass1.json 5 JSON = r''' 7 "JSON Test Pattern pass1", 40 "url": "http://www.JSON.org/", 69 res = self.loads(JSON)
|
test_pass2.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass2.json 5 JSON = r''' 12 res = self.loads(JSON)
|
test_pass3.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass3.json 5 JSON = r''' 7 "JSON Test Pattern pass3": { 18 res = self.loads(JSON)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_pass1.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass1.json 5 JSON = r''' 7 "JSON Test Pattern pass1", 40 "url": "http://www.JSON.org/", 69 res = self.loads(JSON)
|
test_pass2.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass2.json 5 JSON = r''' 12 res = self.loads(JSON)
|
test_pass3.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass3.json 5 JSON = r''' 7 "JSON Test Pattern pass3": { 18 res = self.loads(JSON)
|
/external/chromium_org/v8/test/mjsunit/ |
json.js | 46 assertTrue(Object.prototype === JSON.__proto__); 47 assertEquals("[object JSON]", Object.prototype.toString.call(JSON)); 88 assertFalse(p == "JSON"); 92 assertEquals({}, JSON.parse("{}")); 93 assertEquals({42:37}, JSON.parse('{"42":37}')); 94 assertEquals(null, JSON.parse("null")); 95 assertEquals(true, JSON.parse("true")); 96 assertEquals(false, JSON.parse("false")); 97 assertEquals("foo", JSON.parse('"foo"')) 483 var json = '{"stuff before slash\\\\\\\\stuff after slash":"whatever"}'; variable [all...] |
json2.js | 30 // Test JSON.stringify on the global object. 32 assertTrue(JSON.stringify(this).indexOf('"a":12345') > 0); 33 assertTrue(JSON.stringify(this, null, 0).indexOf('"a":12345') > 0); 35 // Test JSON.stringify of array in dictionary mode. 37 assertEquals(expected, JSON.stringify(input)); 38 assertEquals(expected, JSON.stringify(input, null, 0)); 109 JSON.stringify({ get toJSON() { throw "error"; } }); 121 assertThrows(function() { JSON.stringify(tojson_ex); }); 122 assertThrows(function() { JSON.stringify(tojson_ex, null, 0); }); 158 assertEquals('{"a":1,"b":2,"d":4}', JSON.stringify(getter_side_effect)) [all...] |
/external/chromium_org/v8/test/webkit/ |
JSON-stringify-replacer.js | 24 description("Test to ensure correct behaviour of replacer functions in JSON.stringify"); 70 shouldBeUndefined("JSON.stringify(object, returnUndefined)"); 71 shouldBeUndefined("JSON.stringify(array, returnUndefined)"); 73 shouldBe("JSON.stringify(object, returnObjectFor1)", '\'{"0":0,"1":{},"2":2}\''); 74 shouldBe("JSON.stringify(array, returnObjectFor1)", '\'[0,{},2,null]\''); 76 shouldBe("JSON.stringify(object, returnArrayFor1)", '\'{"0":0,"1":[],"2":2}\''); 77 shouldBe("JSON.stringify(array, returnArrayFor1)", '\'[0,[],2,null]\''); 79 shouldBe("JSON.stringify(object, returnUndefinedFor1)", '\'{"0":0,"2":2}\''); 80 shouldBe("JSON.stringify(array, returnUndefinedFor1)", '\'[0,null,2,null]\''); 82 shouldBe("JSON.stringify(object, returnFunctionFor1)", '\'{"0":0,"2":2}\'') [all...] |
/external/chromium_org/third_party/skia/tools/ |
reformat-json.py | 11 Rewrites a JSON file to use Python's standard JSON pretty-print format, 16 Should not modify the JSON contents in any meaningful way. 27 # that directory. That script allows us to parse the actual-results.json file 46 parser = argparse.ArgumentParser(description='Reformat JSON files in-place.')
|
/external/skia/tools/ |
reformat-json.py | 11 Rewrites a JSON file to use Python's standard JSON pretty-print format, 16 Should not modify the JSON contents in any meaningful way. 27 # that directory. That script allows us to parse the actual-results.json file 46 parser = argparse.ArgumentParser(description='Reformat JSON files in-place.')
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/ |
WireFormat.java | 20 import com.google.polo.wire.json.JsonWireAdapter; 29 JSON, // JSON, implemented by JsonWireInterface 42 case JSON:
|
/libcore/json/src/main/java/org/json/ |
JSONArray.java | 17 package org.json; 25 // Note: this class was written without inspecting the non-free org.json sourcecode. 96 throw JSON.typeMismatch(object, "JSONArray"); 101 * Creates a new {@code JSONArray} with values from the JSON string. 103 * @param json a JSON-encoded string containing an array. 107 public JSONArray(String json) throws JSONException { 108 this(new JSONTokener(json)); 150 values.add(JSON.checkDouble(value)); 194 JSON.checkDouble(((Number) value).doubleValue()) [all...] |
JSONObject.java | 17 package org.json; 26 // Note: this class was written without inspecting the non-free org.json sourcecode. 92 * <li>are included in the encoded JSON string. 160 throw JSON.typeMismatch(object, "JSONObject"); 165 * Creates a new {@code JSONObject} with name/value mappings from the JSON 168 * @param json a JSON-encoded string containing an object. 172 public JSONObject(String json) throws JSONException { 173 this(new JSONTokener(json)); 218 nameValuePairs.put(checkName(name), JSON.checkDouble(value)) [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/ |
math_map.js | 7 * JSON files. The class (and entries) can then be used as via the 58 * Stringifies MathMap into JSON object. 62 return JSON.stringify(this); 67 * Path to dir containing ChromeVox JSON definitions for math speak. 76 * Subpath to dir containing ChromeVox JSON definitions for symbols. 85 * Subpath to dir containing ChromeVox JSON definitions for functions. 94 * Array of JSON filenames containing symbol definitions for math speak. 101 'greek-capital.json', 'greek-small.json', 'greek-scripts.json', [all...] |
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/ |
builders_unittests.js | 697 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoJSON)); 702 simulator.json = function(url) 705 if (/\/json\/builders$/.exec(url)) [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/hosted/ |
json2.js | 2 http://www.JSON.org/json2.js 9 See http://www.JSON.org/js.html 19 This file creates a global JSON object containing two methods: stringify 22 JSON.stringify(value, replacer, space) 36 This method produces a JSON text from a JavaScript value. 73 Values that do not have JSON representations, such as undefined or 76 a replacer function to replace those with JSON values. 77 JSON.stringify(undefined) returns undefined. 89 text = JSON.stringify(['e', {pluribus: 'unum'}]); 93 text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t') [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
TestController.js | 42 message = typeof result === "undefined" ? "\"<undefined>\"" : JSON.stringify(result);
|
/external/chromium_org/v8/test/webkit/resources/ |
json2-es5-compat.js | 6 http://www.JSON.org/json2.js 13 See http://www.JSON.org/js.html 15 This file creates a global JSON object containing two methods: stringify 18 JSON.stringify(value, replacer, space) 32 This method produces a JSON text from a JavaScript value. 69 Values that do not have JSON representations, such as undefined or 72 a replacer function to replace those with JSON values. 73 JSON.stringify(undefined) returns undefined. 85 text = JSON.stringify(['e', {pluribus: 'unum'}]); 89 text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t') [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/ |
chromevox_json.js | 9 * @fileoverview A simple wrapper around the JSON APIs. 10 * If it is possible to use the browser's built in native JSON, then 11 * cvox.ChromeVoxJSON is the same as JSON. 12 * If the page has its own version of JSON, cvox.ChromeVoxJSON will use its 13 * own implementation (rather than the version of JSON on the page 24 if (window.JSON && window.JSON.toString() == '[object JSON]') { 25 cvox.ChromeVoxJSON = window.JSON; 28 * JSON implementation renamed to cvox.ChromeVoxJSON [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_open/ |
background.js | 8 ids = JSON.parse(localStorage.openWhenComplete); 10 localStorage.openWhenComplete = JSON.stringify(ids); 16 localStorage.openWhenComplete = JSON.stringify(ids);
|
/external/chromium_org/v8/test/mjsunit/es6/ |
mirror-symbols.js | 9 // Create mirror and JSON representation. 12 var json = JSON.stringify(serializer.serializeValue(mirror)); 28 // Parse JSON representation and check. 29 var fromJSON = eval('(' + json + ')');
|