/external/v8/test/mjsunit/ |
D | json.js | 46 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 …]
|
D | json2.js | 32 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 …]
|
D | json-stringify-recursive.js | 38 JSON.stringify(a); 49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError); 54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
|
D | messages.js | 99 JSON.stringify(o); 360 JSON.parse("{") 365 JSON.parse("/") 370 JSON.parse("{ 1") 375 JSON.parse('"""')
|
/external/v8/test/mjsunit/regress/ |
D | 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 …]
|
D | regress-crbug-158185.js | 29 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]);
|
D | 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));
|
D | regress-1015.js | 45 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}')
|
D | regress-crbug-554946.js | 12 JSON.stringify(array)); 21 JSON.stringify(array)); 29 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array)); 37 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array)); 45 assertEquals('[0,1,2,{"value":"funky"},4,5,null,7,8,9]', JSON.stringify(array)); 53 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array)); 61 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array));
|
D | regress-json-stringify-gc.js | 38 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));
|
D | regress-convert-transition.js | 30 var a = JSON.parse(input); 34 var b = JSON.parse(input); 38 var c = JSON.parse(input);
|
D | regress-cnlt-elements.js | 30 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}');
|
D | regress-latin-1.js | 31 assertEquals(0x80, JSON.stringify("\x80").charCodeAt(1)); 32 assertEquals(0x80, JSON.stringify("\x80", 0, null).charCodeAt(1)); 88 var stringified = JSON.stringify({"test" : testString}, null, 0);
|
/external/v8/test/webkit/ |
D | run-json-stringify-expected.txt | 4 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 …]
|
D | JSON-stringify-replacer-expected.txt | 24 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/jetty/src/java/org/eclipse/jetty/util/ajax/ |
D | JSONPojoConvertorFactory.java | 24 import org.eclipse.jetty.util.ajax.JSON.Convertor; 25 import org.eclipse.jetty.util.ajax.JSON.Output; 27 public class JSONPojoConvertorFactory implements JSON.Convertor 29 private final JSON _json; 32 public JSONPojoConvertorFactory(JSON json) in JSONPojoConvertorFactory() 49 public JSONPojoConvertorFactory(JSON json,boolean fromJSON) in JSONPojoConvertorFactory() 68 Class cls=Loader.loadClass(JSON.class,clsName); in toJSON() 74 JSON.LOG.warn(e); in toJSON() 94 Class cls=Loader.loadClass(JSON.class,clsName); in fromJSON() 100 JSON.LOG.warn(e); in fromJSON()
|
/external/v8/test/mjsunit/harmony/ |
D | proxies-json.js | 38 assertEquals(expected, JSON.stringify(object)); 40 assertEquals(expected, JSON.stringify(object, undefined, 0)); 98 assertEquals(expected2, JSON.stringify(parent2)); 100 assertEquals(expected2, JSON.stringify(parent2, undefined, 0)); 212 JSON.stringify(parent7)); 214 JSON.stringify(parent7)); 238 assertEquals(undefined, JSON.stringify(proxy)); 252 assertEquals('{"foo":42}', JSON.stringify(proxy)); 273 assertEquals('[42]', JSON.stringify(proxy)); 290 assertEquals('{"0":"foo","1":708}', JSON.stringify(object, proxy)); [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/static/ |
D | jquery.json-2.2.min.js | 3 {if(typeof(JSON)=='object'&&JSON.stringify) 4 return JSON.stringify(o);var type=typeof(o);if(o===null) 22 {if(typeof(JSON)=='object'&&JSON.parse) 23 return JSON.parse(src);return eval("("+src+")");};$.secureEvalJSON=function(src) 24 {if(typeof(JSON)=='object'&&JSON.parse) 25 return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=…
|
/external/chromium-trace/catapult/third_party/pipeline/pipeline/ui/ |
D | jquery.json.min.js | 3 {if(typeof(JSON)=='object'&&JSON.stringify) 4 return JSON.stringify(o);var type=typeof(o);if(o===null) 22 {if(typeof(JSON)=='object'&&JSON.parse) 23 return JSON.parse(src);return eval("("+src+")");};$.secureEvalJSON=function(src) 24 {if(typeof(JSON)=='object'&&JSON.parse) 25 return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=…
|
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/static/ |
D | jquery.json-2.2.min.js | 3 {if(typeof(JSON)=='object'&&JSON.stringify) 4 return JSON.stringify(o);var type=typeof(o);if(o===null) 22 {if(typeof(JSON)=='object'&&JSON.parse) 23 return JSON.parse(src);return eval("("+src+")");};$.secureEvalJSON=function(src) 24 {if(typeof(JSON)=='object'&&JSON.parse) 25 return JSON.parse(src);var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,'@');filtered=…
|
/external/jsmn/ |
D | README.md | 2 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 7 …JSON 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/v8/test/webkit/resources/ |
D | json2-es5-compat.js | 165 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/v8/test/mjsunit/es6/ |
D | json.js | 8 assertEquals('[object JSON]', "" + JSON); 9 assertEquals("JSON", JSON[Symbol.toStringTag]); 10 var desc = Object.getOwnPropertyDescriptor(JSON, Symbol.toStringTag);
|
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/blink/testharness/ |
D | testharnessreport.js | 156 output += JSON.stringify(arrayValue[0]); 163 output += JSON.stringify(arrayValue[index]); 185 JSON.stringify(objectValue[property]) + 206 output += JSON.stringify(value); 276 this.cachedMetadata = JSON.parse(cacheText); 405 setup(JSON.parse(JSON.stringify(window.opener.testharness_properties)));
|
/external/jsoncpp/doc/ |
D | jsoncpp.dox | 5 <a HREF="http://www.json.org/">JSON (JavaScript Object Notation)</a> 10 Here is an example of JSON data: 31 - read and write JSON document 33 - rewrite JSON document preserving original comments 35 Notes: Comments used to be supported in JSON but where removed for 75 // Make a new JSON document for the configuration. Preserve original comments. 78 // You can also use streams. This will put the contents of any JSON 101 - <a HREF="http://www.json.org/">JSON</a> Specification and alternate language implementations.
|