Home
last modified time | relevance | path

Searched refs:JSON (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/external/chromium_org/v8/test/mjsunit/
Djson.js46 assertTrue(Object.prototype === JSON.__proto__);
47 assertEquals("[object JSON]", Object.prototype.toString.call(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"'));
98 assertEquals("f\no", JSON.parse('"f\\no"'));
100 JSON.parse('"\\b\\f\\n\\r\\t\\"\\u2028\\/\\\\"'));
[all …]
Djson2.js32 assertTrue(JSON.stringify(this).indexOf('"a":12345') > 0);
33 assertTrue(JSON.stringify(this, null, 0).indexOf('"a":12345') > 0);
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));
159 assertEquals('{"b":2,"d":4,"e":5}', JSON.stringify(getter_side_effect));
171 JSON.stringify(getter_side_effect, null, 0));
[all …]
/external/chromium_org/v8/test/mjsunit/regress/
Dregress-3135.js6 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 …]
Dregress-2374.js30 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));
Dregress-crbug-158185.js29 Object.keys(JSON.parse('{"0023456": 1}'))[0]);
31 Object.keys(JSON.parse('{"1234567890123": 1}'))[0]);
33 Object.keys(JSON.parse('{"123456789ABCD": 1}'))[0]);
35 Object.keys(JSON.parse('{"12A": 1}'))[0]);
37 assertEquals(1, JSON.parse('{"0":1}')[0]);
38 assertEquals(undefined, JSON.parse('{"00":1}')[0]);
Dregress-1015.js45 var ja = JSON.parse('[1,2,3,4]');
46 var jo = JSON.parse('{"bar": 10, "foo": 20}')
47 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
57 var ja = JSON.parse('[1,2,3,4]');
58 var jo = JSON.parse('{"bar": 10, "foo": 20}')
59 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
Dregress-json-stringify-gc.js38 json1 = JSON.stringify(a);
39 json2 = JSON.stringify(a);
45 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
50 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
Dregress-convert-transition.js30 var a = JSON.parse(input);
34 var b = JSON.parse(input);
38 var c = JSON.parse(input);
Dregress-cnlt-elements.js30 var a = JSON.parse('{"b":1,"c":2,"d":3,"e":4}');
31 var b = JSON.parse('{"12040200":1, "a":2, "b":2}');
32 var c = JSON.parse('{"24050300":1}');
/external/chromium_org/v8/test/webkit/
Drun-json-stringify-expected.txt4 PASS tests[i](nativeJSON) is tests[i](JSON)
8 PASS tests[i](nativeJSON) is tests[i](JSON)
12 PASS tests[i](nativeJSON) is tests[i](JSON)
16 PASS tests[i](nativeJSON) is tests[i](JSON)
20 PASS tests[i](nativeJSON) is tests[i](JSON)
24 PASS tests[i](nativeJSON) is tests[i](JSON)
28 PASS tests[i](nativeJSON) is tests[i](JSON)
32 PASS tests[i](nativeJSON) is tests[i](JSON)
36 PASS tests[i](nativeJSON) is tests[i](JSON)
40 PASS tests[i](nativeJSON) is tests[i](JSON)
[all …]
DJSON-stringify-replacer-expected.txt24 Test to ensure correct behaviour of replacer functions in JSON.stringify
29 PASS JSON.stringify(object, returnUndefined) is undefined.
30 PASS JSON.stringify(array, returnUndefined) is undefined.
31 PASS JSON.stringify(object, returnObjectFor1) is '{"0":0,"1":{},"2":2}'
32 PASS JSON.stringify(array, returnObjectFor1) is '[0,{},2,null]'
33 PASS JSON.stringify(object, returnArrayFor1) is '{"0":0,"1":[],"2":2}'
34 PASS JSON.stringify(array, returnArrayFor1) is '[0,[],2,null]'
35 PASS JSON.stringify(object, returnUndefinedFor1) is '{"0":0,"2":2}'
36 PASS JSON.stringify(array, returnUndefinedFor1) is '[0,null,2,null]'
37 PASS JSON.stringify(object, returnFunctionFor1) is '{"0":0,"2":2}'
[all …]
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/
Dbuilders_unittests.js697 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoJSON));
749 var builderStatusJSON = JSON.parse(JSON.stringify(kExampleBuilderStatusJSON));
754 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoWithWebKitTestCrashJSON));
805 var builderStatusJSON = JSON.parse(JSON.stringify(kExampleBuilderStatusJSON));
810 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoWithTaskKillWarning));
/external/jsmn/
DREADME.md2 jsmn (pronounced like 'jasmine') is a minimalistic JSON parser in C. It can be easily integrated in…
3 You can find more information about JSON format at json.org
7JSON parsers offer you a bunch of functions to load JSON data, parse it and extract any value by i…
8 JSON format itself is extremely simple, so why should we complicate it?
21 The rudimentary jsmn object is a token. Let's consider a JSON string:
27 In jsmn, tokens do not hold any data, but point to token boundaries in JSON string instead. In the …
28 Every jsmn token has a type, which indicates the type of corresponding JSON token. jsmn supports th…
34 This approach provides enough information for parsing any JSON data and makes it possible to use ze…
49 Note: Unlike JSON data types, primitive tokens are not divided into numbers, booleans and null, bec…
60 …the previous symbol before final quote. This was made to simplify string extraction from JSON data.
[all …]
/external/chromium_org/remoting/webapp/
Dclient_plugin.js438 this.plugin.postMessage(JSON.stringify(
474 this.plugin.postMessage(JSON.stringify(
476 this.plugin.postMessage(JSON.stringify(
496 this.plugin.postMessage(JSON.stringify(
508 this.plugin.postMessage(JSON.stringify(
523 this.plugin.postMessage(JSON.stringify(
537 this.plugin.postMessage(JSON.stringify(
563 this.plugin.postMessage(JSON.stringify(
579 this.plugin.postMessage(JSON.stringify(
595 this.plugin.postMessage(JSON.stringify(
[all …]
/external/chromium_org/v8/test/mjsunit/harmony/
Dproxies-json.js32 assertEquals(expected, JSON.stringify(object));
34 assertEquals(expected, JSON.stringify(object, undefined, 0));
83 assertEquals(expected2, JSON.stringify(parent2));
85 assertEquals(expected2, JSON.stringify(parent2, undefined, 0));
176 JSON.stringify(parent7));
178 JSON.stringify(parent7));
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/testing/
Dchromevox_unittest_base.js62 throw new Error('Expected ' + JSON.stringify(array1) +
63 ', got ' + JSON.stringify(array2));
74 throw new Error('Expected ' + JSON.stringify(obj1) +
75 ', got ' + JSON.stringify(obj2));
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/news/javascript/
Doptions.js159 var topics = JSON.parse(window.localStorage.getItem('topics'));
183 var keywords = JSON.parse(window.localStorage.getItem('keywords'));
246 var keywords = JSON.parse(window.localStorage.getItem('keywords'));
252 window.localStorage.setItem('keywords', JSON.stringify(keywords));
254 window.localStorage.setItem('keywords', JSON.stringify(tempCusTopics));
261 window.localStorage.setItem('topics', JSON.stringify(topicArr));
297 var keywords = JSON.parse(window.localStorage.getItem('keywords') || "[]");
375 var keywords = JSON.parse(window.localStorage.getItem('keywords'));
383 window.localStorage.setItem('keywords', JSON.stringify(keywords));
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/
Dapi.js89 var message = JSON.parse(event.data);
114 channel_.port1.postMessage(JSON.stringify(message));
267 channel_.port1.postMessage(JSON.stringify(message));
319 channel_.port1.postMessage(JSON.stringify(message));
345 channel_.port1.postMessage(JSON.stringify(message));
381 targetNode.setAttribute('cvoxnodedesc', JSON.stringify(nodeDescriptions));
402 channel_.port1.postMessage(JSON.stringify(message));
522 channel_.port1.postMessage(JSON.stringify(message));
559 channel_.port1.postMessage(JSON.stringify(msg));
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/hosted/
Djson2.js162 if (!this.JSON) {
163 this.JSON = {};
355 if (typeof JSON.stringify !== 'function') {
356 JSON.stringify = function (value, replacer, space) {
402 if (typeof JSON.parse !== 'function') {
403 JSON.parse = function (text, reviver) {
/external/chromium_org/v8/test/webkit/resources/
Djson2-es5-compat.js165 if (!this.JSON) {
166 JSON = {};
355 if (typeof JSON.stringify !== 'function') {
356 JSON.stringify = function (value, replacer, space) {
402 if (typeof JSON.parse !== 'function') {
403 JSON.parse = function (text, reviver) {
/external/chromium_org/components/json_schema/
DREADME3 a) JSON schema constants, which can be used to inspect schema objects.
5 b) The JSONSchemaValidator class, which can be used to parse and validate JSON
6 schemas, and to validate JSON objects against the parsed schema.
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/plugin_settings/js/
Dplugin_settings.js69 var keyArray = JSON.parse(key);
129 window.localStorage.setItem(JSON.stringify([plugin, pattern]),
146 JSON.stringify([this.plugin_, pattern]));
194 JSON.stringify([this.plugin_, primaryPattern]));
204 var keyArray = JSON.parse(key);
/external/chromium_org/chrome/browser/resources/google_now/
Dcards.js130 JSON.stringify(receivedNotification));
204 console.log('cardManager.update ' + JSON.stringify(combinedCard));
260 JSON.parse(JSON.stringify(
345 console.log('cardManager.onAlarm ' + JSON.stringify(alarm));
358 console.log('cardManager.onAlarm.get ' + JSON.stringify(items));
/external/chromium_org/chrome/browser/resources/print_preview/settings/
Dmedia_size_settings.js65 return select.options[index].value == JSON.stringify(option);
74 selectOption.value = JSON.stringify(option);
82 var valueToSelect = JSON.stringify(this.ticketItem_.getValue());
99 var mediaSize = JSON.parse(select.options[select.selectedIndex].value);
/external/chromium_org/chrome/browser/resources/chromeos/braille_ime/
Dbraille_ime.js187 this.log_('onFocus', JSON.stringify(context));
207 this.log_('onInputContextUpdate', JSON.stringify(context));
218 this.log_('onKeyEvent', engineID + ', ' + JSON.stringify(event));
344 this.log_('onChromeVoxMessage', JSON.stringify(message));
364 JSON.stringify(message));
376 JSON.stringify(chrome.runtime.lastError));

12345678910>>...15