Home
last modified time | relevance | path

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

12345678910>>...12

/external/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 …]
Djson-stringify-recursive.js38 JSON.stringify(a);
49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
Dmessages.js99 JSON.stringify(o);
360 JSON.parse("{")
365 JSON.parse("/")
370 JSON.parse("{ 1")
375 JSON.parse('"""')
/external/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-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-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-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-crbug-554946.js12 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));
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}');
Dregress-latin-1.js31 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/
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/jetty/src/java/org/eclipse/jetty/util/ajax/
DJSONPojoConvertorFactory.java24 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/
Dproxies-json.js38 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/
Djquery.json-2.2.min.js3 {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/
Djquery.json.min.js3 {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/
Djquery.json-2.2.min.js3 {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/
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/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/v8/test/mjsunit/es6/
Djson.js8 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/
Dtestharnessreport.js156 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/
Djsoncpp.dox5 <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.

12345678910>>...12