Home
last modified time | relevance | path

Searched full:json (Results 51 - 75 of 24404) sorted by relevance

12345678910>>...977

/third_party/json/tests/src/
H A Dunit-regression1.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 // for some reason including this after the json header leads to linker errors with VS 2017...
15 #include <nlohmann/json.hpp>
16 using nlohmann::json;
105 friend void to_json(json& j, const nocopy& n) in to_json()
119 json j = json::parse(s);
131 CHECK(json(NAN).dump() == "null");
132 CHECK(json(jso
[all...]
H A Dunit-constructor2.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
20 json j {{"foo", 1}, {"bar", false}};
21 json k(j); // NOLINT(performance-unnecessary-copy-initialization)
27 json j {"foo", 1, 42.23, false};
28 json k(j); // NOLINT(performance-unnecessary-copy-initialization)
34 json j(nullptr);
35 json
[all...]
H A Dunit-class_parser.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
37 bool number_integer(json::number_integer_t val) in number_integer()
43 bool number_unsigned(json::number_unsigned_t val) in number_unsigned()
49 bool number_float(json::number_float_t /*unused*/, const std::string& s) in number_float()
61 bool binary(json::binary_t& val) in binary()
120 bool parse_error(std::size_t position, const std::string& /*unused*/, const json::exception& /*unused*/) in parse_error()
131 class SaxCountdown : public nlohmann::json
[all...]
H A Dunit-class_iterator.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
29 json j(json::value_t::null);
30 json::iterator it(&j);
35 json j(json::value_t::object);
36 json
[all...]
H A Dunit-inspection.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
24 json j {{"foo", 1}, {"bar", false}};
42 json j {"foo", 1, 1u, 42.23, false};
60 json j(nullptr);
78 json j(true);
96 json j("Hello world");
114 json
[all...]
H A Dunit-class_const_iterator.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
23 json j(json::value_t::null);
24 json::const_iterator it(&j);
29 json j(json::value_t::object);
30 json
[all...]
/third_party/json/tests/benchmarks/src/
H A Dbenchmarks.cpp2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
10 #include <nlohmann/json.hpp>
16 using json = nlohmann::json;
19 // parse JSON from file
28 auto* j = new json(); in ParseFile()
31 *j = json::parse(*f); in ParseFile()
42 BENCHMARK_CAPTURE(ParseFile, jeopardy, TEST_DATA_DIRECTORY "/jeopardy/jeopardy.json");
43 BENCHMARK_CAPTURE(ParseFile, canada, TEST_DATA_DIRECTORY "/nativejson-benchmark/canada.json");
[all...]
/foundation/arkui/ace_engine/test/component_test/test_cases/components/button_and_selection/entry/src/main/ets/pages/MyTest/
H A DButtonLabelStyleTest.ets82 assertEqual(JSON.parse(JSON.parse(labelStyle1).$attrs.labelStyle).overflow, 'TextOverflow.None')
85 assertEqual(JSON.parse(JSON.parse(labelStyle2).$attrs.labelStyle).overflow, 'TextOverflow.Clip')
88 assertEqual(JSON.parse(JSON.parse(labelStyle3).$attrs.labelStyle).overflow, 'TextOverflow.Ellipsis')
91 assertEqual(JSON.parse(JSON.parse(labelStyle4).$attrs.labelStyle).maxLines, '3')
92 assertEqual(JSON.parse(JSON
[all...]
/third_party/jerryscript/tests/jerry/
H A Djson-stringify.js16 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
[all...]
/test/xts/acts/arkui/ace_standard/entry/src/main/js/default/test/
H A DtextareaProps.test.js64 console.info("push textAreaProps page success " + JSON.stringify(result));
66 console.error("push textAreaProps page error " + JSON.stringify(result));
88 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[textAreaProps] get inspector attrs value is: " + JSON
[all...]
H A DlistProps.test.js64 console.info("push listProps page success " + JSON.stringify(result));
66 console.error("push listProps page error " + JSON.stringify(result));
90 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
92 let obj = JSON.parse(globalThis.value.idProp);
93 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
94 console.info("[listProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
108 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
110 let obj = JSON.parse(globalThis.value.classProp);
111 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
112 console.info("[listProps] get inspector attrs value is: " + JSON
[all...]
H A DvideoProps.test.js64 console.info("push videoProps page success " + JSON.stringify(result));
66 console.error("push videoProps page error " + JSON.stringify(result));
88 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[videoProps] get inspector attrs value is: " + JSON
[all...]
/test/xts/acts/arkui/ace_standard/entry/src/main/js/test/
H A DtextareaProps.test.js64 console.info("push textAreaProps page success " + JSON.stringify(result));
66 console.error("push textAreaProps page error " + JSON.stringify(result));
88 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[textAreaProps] get inspector attrs value is: " + JSON
[all...]
H A DlistProps.test.js64 console.info("push listProps page success " + JSON.stringify(result));
66 console.error("push listProps page error " + JSON.stringify(result));
90 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
92 let obj = JSON.parse(globalThis.value.idProp);
93 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
94 console.info("[listProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
108 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
110 let obj = JSON.parse(globalThis.value.classProp);
111 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
112 console.info("[listProps] get inspector attrs value is: " + JSON
[all...]
H A DvideoProps.test.js64 console.info("push videoProps page success " + JSON.stringify(result));
66 console.error("push videoProps page error " + JSON.stringify(result));
88 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[videoProps] get inspector attrs value is: " + JSON
[all...]
/test/xts/acts/arkui/ace_standard/entry/src/ohosTest/js/default/test/
H A DtextareaProps.test.js64 console.info("push textAreaProps page success " + JSON.stringify(result));
66 console.error("push textAreaProps page error " + JSON.stringify(result));
88 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[textAreaProps] get inspector attrs value is: " + JSON
[all...]
H A DlistProps.test.js64 console.info("push listProps page success " + JSON.stringify(result));
66 console.error("push listProps page error " + JSON.stringify(result));
90 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
92 let obj = JSON.parse(globalThis.value.idProp);
93 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
94 console.info("[listProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
108 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
110 let obj = JSON.parse(globalThis.value.classProp);
111 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
112 console.info("[listProps] get inspector attrs value is: " + JSON
[all...]
H A DvideoProps.test.js64 console.info("push videoProps page success " + JSON.stringify(result));
66 console.error("push videoProps page error " + JSON.stringify(result));
88 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[videoProps] get inspector attrs value is: " + JSON
[all...]
/test/xts/acts/arkui/ace_standard/entry/src/ohosTest/js/test/
H A DtextareaProps.test.js64 console.info("push textAreaProps page success " + JSON.stringify(result));
66 console.error("push textAreaProps page error " + JSON.stringify(result));
88 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[textAreaProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[textAreaProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[textAreaProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[textAreaProps] get inspector attrs value is: " + JSON
[all...]
H A DlistProps.test.js64 console.info("push listProps page success " + JSON.stringify(result));
66 console.error("push listProps page error " + JSON.stringify(result));
90 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
92 let obj = JSON.parse(globalThis.value.idProp);
93 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
94 console.info("[listProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
108 console.info("[listProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
110 let obj = JSON.parse(globalThis.value.classProp);
111 console.info("[listProps] get inspector value is: " + JSON.stringify(obj));
112 console.info("[listProps] get inspector attrs value is: " + JSON
[all...]
H A DvideoProps.test.js64 console.info("push videoProps page success " + JSON.stringify(result));
66 console.error("push videoProps page error " + JSON.stringify(result));
88 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
90 let obj = JSON.parse(globalThis.value.idProp);
91 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
92 console.info("[videoProps] get inspector attrs value is: " + JSON.stringify(obj.$attrs));
106 console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
108 let obj = JSON.parse(globalThis.value.classProp);
109 console.info("[videoProps] get inspector value is: " + JSON.stringify(obj));
110 console.info("[videoProps] get inspector attrs value is: " + JSON
[all...]
/test/xts/acts/location/geolocation_standard/entry/src/ohosTest/js/test/
H A DGeocoderTest.test.js45 console.info('[lbs_js] getLocationSwitchState result: ' + JSON.stringify(result));
49 console.info('[lbs_js] test requestEnableLocation promise result: ' + JSON.stringify(result));
51 console.info("[lbs_js] promise then error." + JSON.stringify(error));
57 console.info('[lbs_js] check LocationSwitchState result: ' + JSON.stringify(result));
74 console.info('[permission] case grantUserGrantedPermission success :' + JSON.stringify(result));
76 console.info('[permission] case grantUserGrantedPermission failed :' + JSON.stringify(err));
79 console.info('[permission] case grantUserGrantedPermission success :' + JSON.stringify(result));
81 console.info('[permission] case grantUserGrantedPermission failed :' + JSON.stringify(err));
119 console.info('[lbs_js] getGeoServiceState err is : ' + JSON.stringify(err));
121 console.info('[lbs_js] isGeoServiceAvailable callback result: ' + JSON
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_fail.py5 # https://json.org/JSON_checker/test/fail1.json
6 '"A JSON payload should be an object or array, not a string."',
7 # https://json.org/JSON_checker/test/fail2.json
9 # https://json.org/JSON_checker/test/fail3.json
11 # https://json.org/JSON_checker/test/fail4.json
13 # https://json
[all...]
/third_party/typescript/src/testRunner/unittests/config/
H A DtsconfigParsingWatchOptions.ts14 function getParsedCommandJson(json: object, additionalFiles?: vfs.FileSet, existingWatchOptions?: WatchOptions) {
16 json,
20 "tsconfig.json",
28 function getParsedCommandJsonNode(json: object, additionalFiles?: vfs.FileSet, existingWatchOptions?: WatchOptions) {
29 const parsed = parseJsonText("tsconfig.json", JSON.stringify(json));
35 "tsconfig.json",
44 json: object;
51 it("with json ap
[all...]
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_imageText/ace_ets_module_imageText_api11/entry/src/main/ets/test/textTest/
H A DtextObscuredTest.test.ets34 console.info("get textObscured state success " + JSON.stringify(pages));
36 console.info("get textObscured state success " + JSON.stringify(pages.name));
38 console.info("push textObscured page success " + JSON.stringify(result));
60 console.info('ArkUX_Redacted_Text_0090 START :' + JSON.stringify(strJson));
61 console.info("ArkUX_Redacted_Text_0090 JSON.parse(strJson) is: " + JSON.stringify(JSON.parse(strJson)));
62 console.info("ArkUX_Redacted_Text_0090 JSON.parse(strJson).$attrs is: " +
63 JSON.stringify(JSON
[all...]

Completed in 35 milliseconds

12345678910>>...977