/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);
|
/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-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);
|
D | regress-2570.js | 31 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o)); 32 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
|
D | regress-753.js | 35 assertEquals(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5));
|
/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 …]
|
D | run-json-stringify.js | 5 var nativeJSON = this.JSON; 6 this.JSON = null;
|
D | Object-defineProperties-expected.txt | 32 PASS JSON.stringify(Object.defineProperties({},{property:{value:'foo', enumerable:true}, property2:… 33 PASS JSON.stringify(Object.defineProperties({},{property:{value:'foo'}, property2:{value:'foo', enu… 34 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:tru… 35 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:fal… 36 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo'}, property2:{va…
|
/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/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/mjsunit/harmony/ |
D | proxies-json.js | 32 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/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/jsoncpp/doc/ |
D | roadmap.dox | 15 Strict JSON support as specific in RFC 4627 (http://www.ietf.org/rfc/rfc4627.txt?number=4627). 20 Provides more control to determine how specific items are serialized when JSON allow choice: 24 Some typical use-case involve an application specific structure to/from a JSON document. 30 - Provides a JSON document builder: fast only. 33 - Static property dictionnary can be provided to JSON reader
|
D | jsoncpp.dox | 5 <a HREF="http://www.json.org/">JSON (JavaScript Object Notation)</a> 10 Here is an example of JSON data: 30 - read and write JSON document 32 - rewrite JSON document preserving original comments 34 Notes: Comments used to be supported in JSON but where removed for 74 // Make a new JSON document for the configuration. Preserve original comments. 77 // You can also use streams. This will put the contents of any JSON 115 - <a HREF="http://www.json.org/">JSON</a> Specification and alternate language implementations.
|
/external/jsoncpp/ |
D | README.txt | 4 JSON (JavaScript Object Notation) is a lightweight data-interchange format. 9 JSON value, handle serialization and unserialization to string. 131 - a TESTNAME.json file, that contains the input document in JSON format. 136 - each line represents a JSON element of the element tree represented 154 - test_complex_01.json: input JSON document 155 - test_complex_01.expected: flattened JSON element tree used to check if 158 - test_complex_01.actual: flattened JSON element tree produced by 160 - test_complex_01.rewrite: JSON document written by jsontest.exe using the 163 - test_complex_01.actual-rewrite: flattened JSON element tree produced by
|
/external/v8/test/webkit/fast/js/ |
D | Object-defineProperty-expected.txt | 29 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1}), 'f… 30 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {}), 'foo')) i… 31 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {get:undefined… 32 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ… 33 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ… 34 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum… 35 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum… 36 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf… 37 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf… 38 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], 'foo', {value:1,… [all …]
|