Home
last modified time | relevance | path

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

123456

/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 …]
Ddebug-liveedit-3.js61 print("Result: " + JSON.stringify(result) + "\n");
62 print("Change log: " + JSON.stringify(change_log) + "\n");
Ddebug-liveedit-newsource.js61 print("Result: " + JSON.stringify(result) + "\n");
62 print("Change log: " + JSON.stringify(change_log) + "\n");
Ddebug-evaluate-bool-constructor.js50 request = JSON.stringify(request);
53 var response = JSON.parse(resp);
Ddebug-liveedit-breakpoints.js78 print("Result: " + JSON.stringify(result) + "\n");
79 print("Change log: " + JSON.stringify(change_log) + "\n");
Dmirror-error.js47 var json = JSON.stringify(serializer.serializeValue(mirror));
49 JSON.stringify(serializer.serializeReferencedObjects()));
Dmirror-function.js47 var json = JSON.stringify(serializer.serializeValue(mirror));
49 JSON.stringify(serializer.serializeReferencedObjects()));
Dmirror-script.js36 var json = JSON.stringify(serializer.serializeValue(mirror));
67 var fromJSON = JSON.parse(json);
Dmirror-unresolved-function.js45 var json = JSON.stringify(serializer.serializeValue(mirror));
47 JSON.stringify(serializer.serializeReferencedObjects()));
Dmirror-regexp.js58 var json = JSON.stringify(serializer.serializeValue(mirror));
60 JSON.stringify(serializer.serializeReferencedObjects()));
Ddebug-evaluate-with-context.js126 var request = JSON.stringify(request_json);
128 var response = JSON.parse(response_json);
/external/webkit/LayoutTests/fast/js/resources/
DJSON-parse.js313 return jsonObject.parse(JSON.stringify(simpleObject));
315 result[result.length - 1].expected = JSON.stringify(simpleObject);
317 return jsonObject.parse(JSON.stringify(complexObject));
320 return jsonObject.parse(JSON.stringify(complexObject));
322 result[result.length - 1].expected = JSON.stringify(complexObject);
324 return jsonObject.parse(JSON.stringify(simpleObject,null,100));
326 result[result.length - 1].expected = JSON.stringify(simpleObject);
328 return jsonObject.parse(JSON.stringify(complexObject,null,100));
331 return jsonObject.parse(JSON.stringify(complexObject,null,100));
333 result[result.length - 1].expected = JSON.stringify(complexObject);
[all …]
Djson2-es5-compat.js161 if (!this.JSON) {
162 JSON = {};
351 if (typeof JSON.stringify !== 'function') {
352 JSON.stringify = function (value, replacer, space) {
398 if (typeof JSON.parse !== 'function') {
399 JSON.parse = function (text, reviver) {
DJSON-stringify.js208 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
212 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
216 result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
276 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
280 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
284 result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
323 replaceTracker += key + "("+(typeof key)+")" + JSON.stringify(value) + ";";
/external/v8/test/mjsunit/regress/
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-753.js35 assertEquals(JSON.stringify(obj,null, 5.99999), JSON.stringify(obj,null, 5));
Dregress-94873.js35 var request = JSON.stringify(cmd);
37 return JSON.parse(response);
Dregress-1853.js42 var request = JSON.stringify(cmd);
44 return JSON.parse(response);
/external/chromium/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));
Dfeed.js281 var msg = JSON.parse(e.data);
331 var keywords = JSON.parse(window.localStorage.getItem('keywords'));
355 var topics = JSON.parse(window.localStorage.getItem('topics'));
356 var keywords = JSON.parse(window.localStorage.getItem('keywords'));
/external/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/chrome/common/extensions/docs/examples/api/contextMenus/basic/
Dsample.js8 console.log("info: " + JSON.stringify(info));
9 console.log("tab: " + JSON.stringify(tab));
48 console.log(JSON.stringify(info));
/external/chromium/chrome/browser/resources/file_manager/js/
Dmain.js22 var params = JSON.parse(json);
23 console.log('params: ' + JSON.stringify(params));
/external/webkit/Source/WebCore/inspector/front-end/
DSettings.js93 return JSON.parse(window.localStorage[key]);
104 window.localStorage[key] = JSON.stringify(value);
DTextEditorHighlighter.js144 …var postConditionStringified = state ? state.postConditionStringified : JSON.stringify(this._token…
161 this._tokenizer.condition = JSON.parse(postConditionStringified);
174 postConditionStringified = JSON.stringify(this._tokenizer.condition);

123456