| /third_party/jerryscript/tests/jerry/ |
| D | regexp-backtrack.js | 15 assert (JSON.stringify (/(?:(a)*){3,}/.exec("aaaab")) === '["aaaa",null]'); 16 assert (JSON.stringify (/((a)*){3,}/.exec("aaaab")) === '["aaaa","",null]'); 17 assert (JSON.stringify (/((a)+){3,}/.exec("aaaab")) === '["aaaa","a","a"]'); 18 assert (JSON.stringify (/((.)*){3,}/.exec("abcd")) === '["abcd","",null]'); 19 assert (JSON.stringify (/((.)+){3,}/.exec("abcd")) === '["abcd","d","d"]'); 21 assert (JSON.stringify (/((.){1,2}){1,2}/.exec("abc")) === '["abc","c","c"]'); 22 assert (JSON.stringify (/(?:(a)*?)asd/.exec("aaasd")) === '["aaasd","a"]'); 23 assert (JSON.stringify (/(?:(a)*)asd/.exec("aaasd")) === '["aaasd","a"]'); 25 assert (JSON.stringify (/(.)*((a)*|(b)*)/.exec("ab")) === '["ab","b","",null,null]'); 26 assert (JSON.stringify (/(.)*((x)|(y))+/.exec("xy")) === '["xy","x","y",null,"y"]'); [all …]
|
| D | json-stringify.js | 16 assert (JSON.stringify ("") === '""'); 19 assert (JSON.stringify (normal_string) == '"asdasd"'); 22 assert (JSON.stringify (format_characters) == '"\\ba\\fs\\nd\\ra\\tsd"'); 25 assert (JSON.stringify (ctl_string) == '"asd\\u001fasd"'); 28 assert (JSON.stringify (escpad_string) == '"\\"asdasd"'); 30 assert (JSON.stringify('\u2040') == '"⁀"'); 31 assert (JSON.stringify('abc\u2040\u2030cba') == '"abc⁀‰cba"'); 34 assert (JSON.stringify (1) === '1'); 35 assert (JSON.stringify (true) === 'true'); 36 assert (JSON.stringify ("foo") === '"foo"'); [all …]
|
| D | json-parse.js | 25 JSON.parse (str); 33 assert (JSON.parse (str) === null); 35 assert (JSON.parse (str) === true); 37 assert (JSON.parse (str) === false); 39 assert (JSON.parse (str) == -3250); 41 assert (JSON.parse (str) == "str"); 43 assert (JSON.parse (str) === "\b\f\n\t\r"); 46 assert (JSON.parse (str) === "\x00\x1f"); 48 assert (JSON.parse (str) === "\ud801\udc00\ud801\udc00\ud801\udc00\ud801\udc00"); 51 assert (JSON.parse (str) === "\ud801,\udc00,\ud801,\udc00,\ud801,\udc00,\ud801,\udc00"); [all …]
|
| D | regression-test-issue-3082.js | 21 assert (JSON.stringify (obj) === "{\"a\":\"str\",\"c\":true}"); 22 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": \"str\",\n \"c\": true\n}"); 28 assert (JSON.stringify (obj) === "{}"); 29 assert (JSON.stringify (obj, null, 2) === "{}"); 36 assert (JSON.stringify (obj) === "{\"a\":null}"); 37 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": null\n}"); 44 assert (JSON.stringify (obj) === "{\"a\":false}"); 45 assert (JSON.stringify (obj, null, 2) === "{\n \"a\": false\n}");
|
| /third_party/jerryscript/tests/jerry/fail/ |
| D | regression-test-issue-2775.js | 18 print ( JSON . stringify ( "" ) === '""' ) 20 print ( JSON . stringify ( normal_string ) == '"asdasd"' ) 22 print ( JSON . stringify ( format_characters ) == '"\\ba\\fs\\nd\\ra\\tsd"' ) 24 print ( JSON . stringify ( ctl_string ) == '"asd\\u001fasd"' ) 26 print ( JSON . stringify ( escpad_string ) == '"\\"asdasd"' ) 27 print ( JSON . stringify ( true ) === 'true' ) 28 print ( JSON . stringify ( "foo" ) === '"foo"' ) 29 print ( JSON . stringify ( null ) === 'null' ) 30 print ( JSON . stringify ( RegExp ) === undefined ) 31 print ( JSON . stringify ( new Number ( 1 ) ) === '1' ) [all …]
|
| D | regression-test-issue-2774.js | 18 print ( JSON . stringify ( "" ) === '""' ) 20 print ( JSON . stringify ( normal_string ) == '"asdasd"' ) 22 print ( JSON . stringify ( format_characters ) == '"\\ba\\fs\\nd\\ra\\tsd"' ) 24 print ( JSON . stringify ( ctl_string ) == "h" ) 26 print ( JSON . stringify ( escpad_string ) == '"\\"asdasd"' ) 27 print ( JSON . stringify ( '\u2040' ) == '"⁀"' ) 28 print ( JSON . stringify ( 'abc\u2040\u2030cba' ) == '"abc⁀‰cba"' ) 29 print ( JSON . stringify ( 1 ) === '1' ) 30 print ( JSON . stringify ( 0 ) === 'true' ) 31 print ( JSON . stringify ( "" ) === '"foo"' ) [all …]
|
| /third_party/typescript/tests/baselines/reference/ |
| D | json.stringify.symbols | 5 JSON.stringify(value, undefined, 2); 6 >JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 7 >JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 8 >stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 12 JSON.stringify(value, null, 2); 13 >JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 14 >JSON : Symbol(JSON, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 15 >stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) 18 JSON.stringify(value, ["a", 1], 2); 19 >JSON.stringify : Symbol(JSON.stringify, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) [all …]
|
| D | json.stringify.types | 6 JSON.stringify(value, undefined, 2); 7 >JSON.stringify(value, undefined, 2) : string 8 >JSON.stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefin… 9 >JSON : JSON 15 JSON.stringify(value, null, 2); 16 >JSON.stringify(value, null, 2) : string 17 >JSON.stringify : { (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefin… 18 >JSON : JSON 24 JSON.stringify(value, ["a", 1], 2); 25 >JSON.stringify(value, ["a", 1], 2) : string [all …]
|
| D | json.stringify.js | 3 JSON.stringify(value, undefined, 2); 4 JSON.stringify(value, null, 2); 5 JSON.stringify(value, ["a", 1], 2); 6 JSON.stringify(value, (k) => undefined, 2); 7 JSON.stringify(value, undefined, 2); 11 JSON.stringify(value, undefined, 2); 12 JSON.stringify(value, null, 2); 13 JSON.stringify(value, ["a", 1], 2); 14 JSON.stringify(value, function (k) { return undefined; }, 2); 15 JSON.stringify(value, undefined, 2);
|
| /third_party/typescript/src/testRunner/unittests/config/ |
| D | configurationExtension.ts | 7 "dev/node_modules/config-box/package.json": JSON.stringify({ 12 "dev/node_modules/config-box/strict.json": JSON.stringify({ 17 "dev/node_modules/config-box/unstrict.json": JSON.stringify({ 22 "dev/tsconfig.extendsBox.json": JSON.stringify({ 28 "dev/tsconfig.extendsStrict.json": JSON.stringify({ 34 "dev/tsconfig.extendsUnStrict.json": JSON.stringify({ 40 "dev/tsconfig.extendsStrictExtension.json": JSON.stringify({ 46 "dev/node_modules/config-box-implied/package.json": JSON.stringify({ 50 "dev/node_modules/config-box-implied/tsconfig.json": JSON.stringify({ 55 "dev/node_modules/config-box-implied/unstrict/tsconfig.json": JSON.stringify({ [all …]
|
| /third_party/jsframework/runtime/main/manage/event/ |
| D | TaskCenter.ts | 133 return JSON.stringify(v); 242 ace.onFetchRequest(args[1], JSON.stringify(args)); 251 return ace.callNative(JSON.stringify(options), args[args.length - 1]); 253 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0])); 255 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0])); 257 return ace.callNative(JSON.stringify(options), args); 259 return ace.callNative(JSON.stringify(options), JSON.stringify(args[0])); 261 return ace.callNative(JSON.stringify(options), args); 263 return ace.callNative(JSON.stringify(options), args); 265 return ace.callNative(JSON.stringify(options), args); [all …]
|
| /third_party/jerryscript/tests/jerry/es2015/ |
| D | object-assign.js | 23 assert (JSON.stringify (object2) === '{"c":3,"d":5,"a":1,"b":2}'); 30 assert (JSON.stringify (copy) === '{"a":1}'); // { a: 1 } 38 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}'); 41 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}'); 42 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}'); 45 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}'); 46 assert (JSON.stringify (obj2) === '{"a":2,"b":{"c":0}}'); 49 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":3}}'); 50 assert (JSON.stringify (obj2) === '{"a":2,"b":{"c":3}}'); 54 var obj3 = JSON.parse (JSON.stringify (obj1)); [all …]
|
| /third_party/json/doc/mkdocs/docs/features/ |
| D | json_patch.md | 1 # JSON Patch and Diff 5 JSON Patch ([RFC 6902](https://tools.ietf.org/html/rfc6902)) defines a JSON document structure for … 9 The following code shows how a JSON patch is applied to a value. 23 The library can also calculate a JSON patch (i.e., a **diff**) given two JSON values. 27 For two JSON values *source* and *target*, the following code yields always true: 35 The following code shows how a JSON patch is created as a diff for two JSON values.
|
| /third_party/json/doc/mkdocs/docs/api/basic_json/ |
| D | patch.md | 7 [JSON Patch](http://jsonpatch.com) defines a JSON document structure for expressing a sequence of o… 8 a JSON) document. With this function, a JSON Patch is applied to the current JSON value by executin… 14 : JSON patch document 22 - Throws [`parse_error.104`](../../home/exceptions.md#jsonexceptionparse_error104) if the JSON patc… 24 - Throws [`parse_error.105`](../../home/exceptions.md#jsonexceptionparse_error105) if the JSON patc… 27 - Throws [`out_of_range.403`](../../home/exceptions.md#jsonexceptionout_of_range403) if a JSON poin… 28 could not be resolved successfully in the current JSON value; example: `"key baz not found"`. 29 - Throws [`out_of_range.405`](../../home/exceptions.md#jsonexceptionout_of_range405) if JSON pointe… 36 Strong guarantee: if an exception is thrown, there are no changes in the JSON value. 40 Linear in the size of the JSON value and the length of the JSON patch. As usually only a fraction o… [all …]
|
| D | parser_callback_t.md | 9 With a parser callback function, the result of parsing a JSON text can be influenced. When passed to 11 `event`) with a set recursion depth `depth` and context JSON value `parsed`. The return value of th… 19 … the parser read `{` and started to process a JSON object | depth of the parent of the JSON object… 20 …ead a key of a value in an object | depth of the currently parsed JSON object | a JSON string cont… 21 …arser read `}` and finished processing a JSON object | depth of the parent of the JSON object | th… 22 …| the parser read `[` and started to process a JSON array | depth of the parent of the JSON array … 23 …parser read `]` and finished processing a JSON array | depth of the parent of the JSON array | the… 24 …rse_event_t::value` | the parser finished reading a JSON value | depth of the value | the parsed J… 51 Whether the JSON value which called the function during parsing should be kept (`#!cpp true`) or no…
|
| D | index.md | 30 | `ObjectType` | type for JSON objects | [`object_t`](object_t.md) | 31 | `ArrayType` | type for JSON arrays | [`array_t`](array_t.md) | 32 | `StringType` | type for JSON strings and object keys | [`string_t`](string_t.md) | 33 | `BooleanType` | type for JSON booleans | [`boolean_t`](boolean_t.md) | 34 | `NumberIntegerType` | type for JSON integer numbers | [`number_integer_t`](number_integer_t.md) | 35 | `NumberUnsignedType` | type for JSON unsigned integer numbers | [`number_unsigned_t`](number_unsi… 36 | `NumberFloatType` | type for JSON floating-point numbers | [`number_float_t`](number_float_t.m… 48 - [**value_t**](value_t.md) - the JSON type enumeration 49 - [**json_pointer**](../json_pointer.md) - JSON Pointer implementation 50 - [**json_serializer**](json_serializer.md) - type of the serializer to for conversions from/to JSON [all …]
|
| /third_party/json/doc/mkdocs/docs/features/parsing/ |
| D | parser_callbacks.md | 5 With a parser callback function, the result of parsing a JSON text can be influenced. When passed t… 6 …_t` via parameter `event`) with a set recursion depth `depth` and context JSON value `parsed`. The… 25 … the parser read `{` and started to process a JSON object | depth of the parent of the JSON object… 26 …ead a key of a value in an object | depth of the currently parsed JSON object | a JSON string cont… 27 …arser read `}` and finished processing a JSON object | depth of the parent of the JSON object | th… 28 …| the parser read `[` and started to process a JSON array | depth of the parent of the JSON array … 29 …parser read `]` and finished processing a JSON array | depth of the parent of the JSON array | the… 30 …rse_event_t::value` | the parser finished reading a JSON value | depth of the value | the parsed J… 34 When parsing the following JSON text,
|
| /third_party/typescript/src/testRunner/unittests/tsbuild/ |
| D | declarationEmit.ts | 5 "/src/solution/tsconfig.base.json": JSON.stringify({ 11 "/src/solution/tsconfig.json": JSON.stringify({ 16 "/src/solution/src/tsconfig.json": JSON.stringify({ 21 "/src/solution/src/subProject/tsconfig.json": JSON.stringify({ 30 "/src/solution/src/subProject2/tsconfig.json": JSON.stringify({ 44 "/src/solution/src/common/tsconfig.json": JSON.stringify({ 70 "/src/solution/tsconfig.json": JSON.stringify({ 83 "/src/tsconfig.json": JSON.stringify({ 97 "/src/packages/pkg1/tsconfig.json": JSON.stringify({ 108 "/src/packages/pkg2/tsconfig.json": JSON.stringify({
|
| /third_party/node/test/sequential/ |
| D | test-inspector-contexts.js | 43 JSON.stringify(contextCreated)); 45 JSON.stringify(contextCreated)); 61 JSON.stringify(contextCreated)); 63 JSON.stringify(contextCreated)); 65 JSON.stringify(contextCreated)); 74 JSON.stringify(contextDestroyed)); 93 JSON.stringify(contextCreated)); 95 JSON.stringify(contextCreated)); 97 JSON.stringify(contextCreated)); 119 JSON.stringify(contextCreated)); [all …]
|
| /third_party/ejdb/src/bindings/ejdb2_jni/src/main/java/com/softmotions/ejdb2/ |
| D | JSON.java | 30 public final class JSON implements Comparable<JSON>, Cloneable { class 37 return JSON.fromString(toString()); in clone() 39 return new JSON(type, value); in clone() 51 public static JSON fromString(String val) { in fromString() 52 return new JSON(val); in fromString() 55 public static JSON fromBytes(byte[] bytes) { in fromBytes() 56 return new JSON(bytes); in fromBytes() 59 public static JSON fromBytes(byte[] bytes, int off, int len) { in fromBytes() 60 return new JSON(bytes, off, len); in fromBytes() 63 public static JSON fromMap(Map<String, Object> map) { in fromMap() [all …]
|
| /third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/union_types/ |
| D | union_types_4.ts | 34 Assert.equal(JSON.stringify(x), '{"num":202}'); 37 Assert.equal(JSON.stringify(x), '{"str":"QWER"}'); 40 Assert.equal(JSON.stringify(x), '{"bool":false}'); 43 Assert.equal(JSON.stringify(x), '{"obj":{"0":"ZERO"}}'); 46 Assert.equal(JSON.stringify(x), '{"num":202,"str":"ABC","bool":false,"obj":{"obj":{"0":"ZERO"}}}'); 48 Assert.equal(JSON.stringify(y), '{"num":202}'); 50 Assert.equal(JSON.stringify(y), '{"str":"QWER"}'); 52 Assert.equal(JSON.stringify(y), '{"bool":false}'); 54 Assert.equal(JSON.stringify(y), '{"obj":{"0":"ZERO"}}');
|
| /third_party/protobuf/src/google/protobuf/ |
| D | wrappers.proto | 55 // The JSON representation for `DoubleValue` is JSON number. 63 // The JSON representation for `FloatValue` is JSON number. 71 // The JSON representation for `Int64Value` is JSON string. 79 // The JSON representation for `UInt64Value` is JSON string. 87 // The JSON representation for `Int32Value` is JSON number. 95 // The JSON representation for `UInt32Value` is JSON number. 103 // The JSON representation for `BoolValue` is JSON `true` and `false`. 111 // The JSON representation for `StringValue` is JSON string. 119 // The JSON representation for `BytesValue` is JSON string.
|
| /third_party/node/deps/npm/test/tap/ |
| D | install-save-local.js | 34 JSON.stringify(localDependency, null, 2) 40 JSON.stringify(localDevDependency, null, 2) 62 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8'))) 64 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) 89 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8'))) 91 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) 116 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8'))) 118 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) 145 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8'))) 147 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) [all …]
|
| /third_party/python/Doc/library/ |
| D | json.rst | 1 :mod:`json` --- JSON encoder and decoder 5 :synopsis: Encode and decode the JSON format. 14 `JSON (JavaScript Object Notation) <https://json.org>`_, specified by 22 Be cautious when parsing JSON data from untrusted sources. A malicious 23 JSON string may cause the decoder to consume considerable CPU and memory 63 Decoding JSON:: 75 Specializing JSON object decoding:: 123 JSON is a subset of `YAML <http://yaml.org/>`_ 1.2. The JSON produced by 138 JSON generation and parsing. 149 Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting [all …]
|
| /third_party/typescript/src/testRunner/unittests/tscWatch/ |
| D | programUpdates.ts | 42 content: JSON.stringify({ 222 content: JSON.stringify({ 231 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({ 238 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({ 265 content: JSON.stringify({ 274 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({ 282 change: sys => sys.modifyFile("/tsconfig.json", JSON.stringify({ 477 content: JSON.stringify({ compilerOptions: {}, files: ["f2.ts", "f3.ts"] }) 499 … sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } })); 566 content: JSON.stringify({ compilerOptions: {}, files: ["f1.ts"] }) [all …]
|