Home
last modified time | relevance | path

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

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
Djson.stringify.ts25 JSON.stringify(value, undefined, 2);
26 AssertType(JSON.stringify(value, undefined, 2), "string");
27 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }");
32 JSON.stringify(value, null, 2);
33 AssertType(JSON.stringify(value, null, 2), "string");
34 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }");
39 JSON.stringify(value, ["a", 1], 2);
40 AssertType(JSON.stringify(value, ["a", 1], 2), "string");
41 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }");
48 JSON.stringify(value, (k) => undefined, 2);
[all …]
DdestructuringInitializerContextualTypeFromContext.ts52 AssertType(({ children, name = "Artemis", ...props}) => `name: ${name} props: ${JSON.strin…
64 }) => `name: ${name} props: ${JSON.stringify(props)}`;
65 AssertType(`name: ${name} props: ${JSON.stringify(props)}`, "string");
67 AssertType(JSON.stringify(props), "string");
68 AssertType(JSON.stringify, "{ (any, ?union, ?union): string; (any, ?union, ?union): string; }");
DcontrolFlowPropertyDeclarations.ts258 …lace(/( {2,}|\n|\t|\{|\})/g, function(whitespace) { return '{' + JSON.stringify(whitespac…
262 …lace(/( {2,}|\n|\t|\{|\})/g, function(whitespace) { return '{' + JSON.stringify(whitespac…
271 AssertType(function(whitespace) { return '{' + JSON.stringify(whitespace) + '}'; },…
273 AssertType('{' + JSON.stringify(whitespace) + '}', "string");
274 AssertType('{' + JSON.stringify(whitespace), "string");
276 AssertType(JSON.stringify(whitespace), "string");
277 AssertType(JSON.stringify, "{ (any, ?(any, string, any) => any, ?union): string; (any, ?(union)[], …
280 return '{' + JSON.stringify(whitespace) + '}';
/arkcompiler/ets_runtime/test/moduletest/jsonparser/
Djsonparser.js23 let json = JSON.parse("[ 1, 2, 3]");
25 let json2 = JSON.parse("[ 1 ]");
27 let json3 = JSON.parse("[ ]");
34 let strData = JSON.stringify(data);
35 let res = JSON.parse(strData);
42 var o = JSON.parse(a, reviver);
46 let res2 = JSON.parse(strData2);
50 let res3 = JSON.parse(strData3);
54 let res4 = JSON.parse(strData4);
/arkcompiler/ets_runtime/test/moduletest/jsonstringifier/
Djsonstringifier.js30 JSON.stringify(v2);
38 print(JSON.stringify(obj));
43 print(JSON.stringify(a))
59 print(JSON.stringify(o))
68 print(JSON.stringify(o2))
/arkcompiler/ets_runtime/test/moduletest/require/
Drequire.js24 var strB = JSON.stringify(b);
25 var strC = JSON.stringify(c);
26 var str = JSON.stringify(strB + " and " + strC);
/arkcompiler/ets_runtime/test/moduletest/arrayjoin/
Darrayjoin.js24 var str1 = JSON.stringify(Array(3).join("0"));
26 var str2 = JSON.stringify(new Array(3).join("0"));
30 var str3 = JSON.stringify(arr.join("0"));
/arkcompiler/ets_frontend/arkguard/test/grammar/data_type/
Djson_validation.ts20 let json_obj = JSON.parse(json_str);
22 let json_str2 = JSON.stringify(json_obj);
/arkcompiler/ets_runtime/test/moduletest/moduleUseCjs/
DmoduleUseCjs.js28 print(JSON.stringify(cjs));
29 print(JSON.stringify(json));
/arkcompiler/ets_frontend/arkguard/src/utils/
DNameCacheUtil.ts27 const cacheString: string = JSON.stringify(Object.fromEntries(cache));
39 return JSON.parse(cacheString);
/arkcompiler/ets_runtime/test/moduletest/linkedhashtable/
Dlinkedhashtable.js24 let res = JSON.stringify(obj1);
25 let parseObj = JSON.parse(res);
/arkcompiler/runtime_core/templates/
Dmerge.rb58 data = JSON.parse(data.to_json)
97 data = JSON.parse(data.to_json)
100 output_yaml = YAML.dump(JSON.load(data.to_json))
/arkcompiler/ets_runtime/test/moduletest/objoperate/
Dobjoperate.js23 var t1 = JSON.stringify(a);
24 var t2 = JSON.stringify(b);
/arkcompiler/ets_frontend/ts2panda/src/
Dts2panda.ts194 let jsonStrUnicode = escapeUnicode(JSON.stringify(strObject, null, 2));
210 jsonTypeString += escapeUnicode(JSON.stringify(literalArrays[1+i], null, 2));
222 console.log(util.inspect(JSON.parse(JSON.stringify(e)), { maxArrayLength: null }));
231 let jsonLiteralArrUnicode = escapeUnicode(JSON.stringify(literalArrayObject, null, 2));
258 let jsonOpt = JSON.stringify(options, null, 2);
273 let jsonRecord = escapeUnicode(JSON.stringify(record, null, 2));
471 let jsonFuncUnicode = escapeUnicode(JSON.stringify(funcObject, null, 2));
486 let jsonModuleUnicode = escapeUnicode(JSON.stringify(moduleObject, null, 2));
510 let jsonTypeInfoUnicode = escapeUnicode(JSON.stringify(typeInfoObject, null, 2));
525 …let jsonInputJsonFileContentUnicode = escapeUnicode(JSON.stringify(inputJsonFileContentObject, nul…
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsonstringify_fuzzer/
Djsonstringify_fuzzer.cpp48 Local<JSValueRef> jsValue = JSON::Parse(vm, res); in JSONStringifyFuzzTest()
49 JSON::Stringify(vm, jsValue); in JSONStringifyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsonparse_fuzzer/
Djsonparse_fuzzer.cpp48 Local<JSValueRef> jsValue = JSON::Parse(vm, res); in JSONParseFuzzTest()
49 JSON::Stringify(vm, jsValue); in JSONParseFuzzTest()
/arkcompiler/ets_runtime/test/moduletest/dataproperty/
Ddataproperty.js28 print(JSON.stringify(o));
/arkcompiler/ets_runtime/test/aottest/jsonstringify/
Djsonstringify.ts24 print(JSON.stringify(foo))
/arkcompiler/ets_runtime/test/quickfix/print_string/
Dbase_modify.js30 print(JSON.stringify(obj));
Dbase.js33 print(JSON.stringify(obj));
/arkcompiler/ets_runtime/test/aottest/exception_case1/
Dexception_case1.js18 JSON.parse("[1, 2");
/arkcompiler/ets_runtime/test/aottest/exception_case12/
Dexception_case12.ts21 JSON.parse("[1, 2");
/arkcompiler/ets_runtime/test/aottest/exception_case8/
Dexception_case8.js18 JSON.parse("[1, 2");
/arkcompiler/ets_runtime/test/moduletest/dynamicimport/
Ddynamicimport.js41 print(JSON.stringify(m));
/arkcompiler/ets_runtime/test/aottest/exception_case11/
Dexception_case11.ts22 JSON.parse("[1, 2");

123