| /third_party/python/Doc/library/ |
| H A D | json.rst | 1 :mod:`json` --- JSON encoder and decoder 4 .. module:: json 5 :synopsis: Encode and decode the JSON format. 10 **Source code:** :source:`Lib/json/__init__.py` 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 26 :mod:`json` expose [all...] |
| /third_party/typescript/tests/baselines/reference/ |
| H A D | nodeModulesPackagePatternExportsTrailers(module=nodenext).trace.json | 2 "Found 'package.json' at 'tests/cases/conformance/node/package.json'.", 3 "'package.json' does not have a 'typesVersions' field.", 7 "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", 9 "Found 'package.json' at 'tests/cases/conformance/node/node_modules/inner/package.json'.", 10 "'package.json' does not have a 'typesVersions' field.", 20 "File 'tests/cases/conformance/node/package.json' exists according to earlier cached lookups.", 22 "File 'tests/cases/conformance/node/node_modules/inner/package.json' exists according to earlier cached lookups.", 32 "File 'tests/cases/conformance/node/package.json' exist [all...] |
| /third_party/json/docs/examples/ |
| H A D | json_pointer.cpp | 2 #include <nlohmann/json.hpp> 4 using json = nlohmann::json; 8 // correct JSON pointers in main() 9 json::json_pointer p1; in main() 10 json::json_pointer p2(""); in main() 11 json::json_pointer p3("/"); in main() 12 json::json_pointer p4("//"); in main() 13 json::json_pointer p5("/foo/bar"); in main() 14 json in main() [all...] |
| /foundation/arkui/ace_engine/test/unittest/core/render/ |
| H A D | render_property_test_ng.cpp | 105 auto json = JsonUtil::Create(true); in HWTEST_F() local 110 renderPositionProperty.ToJsonValue(json, filter); in HWTEST_F() 115 EXPECT_EQ(json->GetValue("position")->GetString("x"), ""); in HWTEST_F() 116 EXPECT_EQ(json->GetValue("position")->GetString("y"), ""); in HWTEST_F() 117 EXPECT_EQ(json->GetValue("offset")->GetString("x"), ZERO_STRING); in HWTEST_F() 118 EXPECT_EQ(json->GetValue("offset")->GetString("y"), ZERO_STRING); in HWTEST_F() 119 EXPECT_EQ(json->GetValue("markAnchor")->GetString("x"), ZERO_STRING); in HWTEST_F() 120 EXPECT_EQ(json->GetValue("markAnchor")->GetString("y"), ZERO_STRING); in HWTEST_F() 158 auto json = JsonUtil::Create(true); in HWTEST_F() local 164 graphicsProperty.ToJsonValue(json, filte in HWTEST_F() 188 auto json = JsonUtil::Create(true); HWTEST_F() local 262 auto json = JsonUtil::Create(true); HWTEST_F() local 296 auto json = JsonUtil::Create(true); HWTEST_F() local 324 auto json = JsonUtil::Create(true); HWTEST_F() local 357 auto json = JsonUtil::Create(true); HWTEST_F() local 399 auto json = JsonUtil::Create(true); HWTEST_F() local 448 auto json = JsonUtil::Create(true); HWTEST_F() local [all...] |
| /third_party/typescript/tests/baselines/reference/tsserver/projectsWithReferences/ |
| H A D | trasitive-references-without-files-with-edit-on-config-file.js | 1 Info 0 [00:00:39.000] Provided types map file "/typesMap.json" doesn't exist
16 //// [/user/username/projects/myproject/a/tsconfig.json]
19 //// [/user/username/projects/myproject/b/tsconfig.json]
22 //// [/user/username/projects/myproject/c/tsconfig.json]
50 Info 2 [00:00:41.000] For info: /user/username/projects/myproject/c/index.ts :: Config file name: /user/username/projects/myproject/c/tsconfig.json
51 Info 3 [00:00:42.000] Creating configuration project /user/username/projects/myproject/c/tsconfig.json
52 Info 4 [00:00:43.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/c/tsconfig.json WatchType: Config file
53 Info 5 [00:00:44.000] Config: /user/username/projects/myproject/c/tsconfig.json : { 65 "configFilePath": "/user/username/projects/myproject/c/tsconfig.json" [all...] |
| /foundation/arkui/ace_engine/test/component_test/test_cases/components/button_and_selection/entry/src/main/ets/pages/MyTest/ |
| H A D | SelectSelectedOptionFontTest.ets | 55 assertEqual(JSON.parse(JSON.parse(selectedOptionFont1).$attrs.selectedOptionFont).weight, 'FontWeight.Lighter') 58 assertEqual(JSON.parse(JSON.parse(selectedOptionFont2).$attrs.selectedOptionFont).weight, 'FontWeight.Normal') 61 assertEqual(JSON.parse(JSON.parse(selectedOptionFont3).$attrs.selectedOptionFont).weight, 'FontWeight.Regular') 64 assertEqual(JSON.parse(JSON.parse(selectedOptionFont4).$attrs.selectedOptionFont).weight, 'FontWeight.Medium') 65 assertEqual(JSON.parse(JSON [all...] |
| H A D | SelectOptionFontTest.ets | 55 assertEqual(JSON.parse(JSON.parse(optionFont1).$attrs.optionFont).weight, 'FontWeight.Lighter') 58 assertEqual(JSON.parse(JSON.parse(optionFont2).$attrs.optionFont).weight, 'FontWeight.Normal') 61 assertEqual(JSON.parse(JSON.parse(optionFont3).$attrs.optionFont).weight, 'FontWeight.Regular') 64 assertEqual(JSON.parse(JSON.parse(optionFont4).$attrs.optionFont).weight, 'FontWeight.Medium') 65 assertEqual(JSON.parse(JSON [all...] |
| /foundation/deviceprofile/device_info_manager/common/src/interfaces/ |
| H A D | device_profile.cpp | 186 cJSON* json = cJSON_CreateObject(); in dump() local 187 if (!cJSON_IsObject(json)) { in dump() 188 cJSON_Delete(json); in dump() 191 cJSON_AddStringToObject(json, DEVICE_ID.c_str(), ProfileUtils::GetAnonyString(deviceId_).c_str()); in dump() 192 cJSON_AddStringToObject(json, DEVICE_TYPE_NAME.c_str(), deviceTypeName_.c_str()); in dump() 193 cJSON_AddNumberToObject(json, DEVICE_TYPE_ID.c_str(), deviceTypeId_); in dump() 194 cJSON_AddStringToObject(json, DEVICE_NAME.c_str(), deviceName_.c_str()); in dump() 195 cJSON_AddStringToObject(json, MANUFACTURE_NAME.c_str(), manufactureName_.c_str()); in dump() 196 cJSON_AddStringToObject(json, DEVICE_MODEL.c_str(), deviceModel_.c_str()); in dump() 197 cJSON_AddNumberToObject(json, STORAGE_CAPACIT in dump() 216 cJSON* json = cJSON_CreateObject(); AnnoymizeDump() local [all...] |
| /test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_imageText/ace_ets_module_imageText_api11/entry/src/main/ets/test/imageTest/ |
| H A D | OhosMatrix4Jsunit.test.ets | 39 console.info("get ohosMatrix4 state pages:" + JSON.stringify(pages));
41 console.info("get ohosMatrix4 state pages.name:" + JSON.stringify(pages.name));
44 console.info("push ohosMatrix4 page result:" + JSON.stringify(result));
61 console.info("[test_OhosMatrix4_001] component strJson:" + JSON.stringify(JSON.parse(strJson)));
62 expect(JSON.parse(strJson).$type).assertEqual('Image');
63 expect(JSON.parse(strJson).$attrs.transform.type)
65 expect(JSON.parse(strJson).$attrs.transform.matrix)
74 console.info("[test_OhosMatrix4_001] component strJson:" + JSON.stringify(JSON [all...] |
| /foundation/communication/dsoftbus/core/transmission/common/src/ |
| H A D | softbus_message_open_channel.c | 36 cJSON *json = cJSON_CreateObject(); in PackError() local 37 if (json == NULL) { in PackError() 41 if (!AddNumberToJsonObject(json, CODE, CODE_OPEN_CHANNEL) || in PackError() 42 !AddNumberToJsonObject(json, ERR_CODE, errCode) || in PackError() 43 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in PackError() 44 cJSON_Delete(json); in PackError() 48 char *data = cJSON_PrintUnformatted(json); in PackError() 52 cJSON_Delete(json); in PackError() 56 static int32_t PackFirstData(const AppInfo *appInfo, cJSON *json) in PackFirstData() argument 87 if (!AddStringToJsonObject(json, FIRST_DAT in PackFirstData() 98 JsonObjectPackRequestEx(const AppInfo *appInfo, cJSON *json, unsigned char *encodeSessionKey) JsonObjectPackRequestEx() argument 136 cJSON *json = cJSON_CreateObject(); PackRequest() local 174 UnpackFirstData(AppInfo *appInfo, const cJSON *json) UnpackFirstData() argument 296 AddItemsToJsonObject(const AppInfo *appInfo, cJSON *json) AddItemsToJsonObject() argument 317 cJSON *json = cJSON_CreateObject(); PackReply() local [all...] |
| /test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_scroll/ace_ets_module_scroll_api11/entry/src/main/ets/test/SwiperTest/Swiper_ItemChange/ |
| H A D | swiperItemVisibility.test.ets | 46 console.info("get swiperItemVisibility state success " + JSON.stringify(pages)); 48 console.info("get swiperItemVisibility state success " + JSON.stringify(pages.name)); 50 console.info("push swiperItemVisibility page success " + JSON.stringify(result)); 53 console.error("push swiperItemVisibility page error " + JSON.stringify(err)); 84 console.info("Before page turning , the visiblekey.left value is " + JSON.stringify(visiblekey.left)); 85 console.info("Before page turning , the visiblekey01.left value is " + JSON.stringify(visiblekey01.left)); 107 console.info("After page turning , the visiblekey.left value is " + JSON.stringify(visiblekey.left)); 108 console.info("After page turning , the visiblekey02.left value is " + JSON.stringify(visiblekey02.left)); 113 console.info("The type value is " + JSON.stringify(JSON [all...] |
| /foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
| H A D | swiper_layout_property.h | 109 void ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const override 111 CHECK_NULL_VOID(json); variable 112 LayoutProperty::ToJsonValue(json, filter); 117 json->PutExtAttr("index", std::to_string(propIndex_.value_or(0)).c_str(), filter); 118 json->PutExtAttr("vertical", 120 json->PutExtAttr("indicator", propShowIndicator_.value_or(true) ? "true" : "false", filter); 121 json->PutExtAttr("itemSpace", 123 json->PutExtAttr("cachedCount", propCachedCount_.value_or(1), filter); 124 json->PutExtAttr("displayMode", 127 json 158 CHECK_NULL_VOID(json); global() variable [all...] |
| /test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_commonAttrsOther/ace_ets_module_commonAttrsOther_api11/entry/src/main/ets/test/ |
| H A D | noBarriersGroup.test.ets | 30 console.info("get noBarriersGroup state success " + JSON.stringify(pages)); 32 console.info("get noBarriersGroup state success " + JSON.stringify(pages.name)); 34 console.info("push noBarriersGroup page success " + JSON.stringify(result)); 65 console.info('noBarriersGroup START :' + JSON.stringify(strJson)); 67 expect(JSON.parse(strJson).$type).assertEqual("Column"); 71 console.info('noBarriersGroup001 ERR ' + JSON.stringify(err)); 81 console.info('noBarriersGroup START :' + JSON.stringify(strJson)); 82 expect(JSON.parse(strJson).$type).assertEqual("Column"); 86 console.info('noBarriersGroup002 ERR ' + JSON.stringify(err)); 96 console.info('noBarriersGroup START :' + JSON [all...] |
| /test/xts/acts/arkui/ace_ets_module_noui/ace_ets_module_StateMangagement/ace_ets_module_StateMangagement_api11/entry/src/main/ets/test/State/ |
| H A D | LinkDataJsunit.test.ets | 45 console.info("get LinkDataJsunit state pages: " + JSON.stringify(pages)); 47 console.info("get LinkDataJsunit state pages.name: " + JSON.stringify(pages.name)); 50 console.info("push LinkDataJsunit success: " + JSON.stringify(result)); 63 let obj: ESObject = JSON.parse(strJson); 64 console.info("[LinkDataJsunit_0100] component obj is: " + JSON.stringify(obj)); 65 console.info("[LinkDataJsunit_0100] text: " + JSON.stringify(obj.$attrs.content)); 79 let obj: ESObject = JSON.parse(strJson); 80 console.info("[LinkDataJsunit_0200] component obj is: " + JSON.stringify(obj)); 81 console.info("[LinkDataJsunit_0200] text: " + JSON.stringify(obj.$attrs.content)); 91 let obj: ESObject = JSON [all...] |
| H A D | LinkClassArrJsunit.test.ets | 45 console.info("get LinkClassArrJsunit state pages: " + JSON.stringify(pages)); 47 console.info("get LinkClassArrJsunit state pages.name: " + JSON.stringify(pages.name)); 50 console.info("push LinkClassArrJsunit success: " + JSON.stringify(result)); 75 let obj1: ESObject = JSON.parse(strJson1); 76 console.info("[LinkClassArrJsunit_0100] component obj1 is: " + JSON.stringify(obj1)); 77 console.info("[LinkClassArrJsunit_0100] text: " + JSON.stringify(obj1.$attrs.content)); 81 let obj2: ESObject = JSON.parse(strJson2); 82 console.info("[LinkClassArrJsunit_0100] component obj2 is: " + JSON.stringify(obj2)); 83 console.info("[LinkClassArrJsunit_0100] text: " + JSON.stringify(obj2.$attrs.content)); 98 let obj1: ESObject = JSON [all...] |
| H A D | StorageProp22Jsunit.test.ets | 45 console.info("get StorageProp22Jsunit state pages: " + JSON.stringify(pages));
47 console.info("get StorageProp22Jsunit state pages.name: " + JSON.stringify(pages.name));
50 console.info("push StorageProp22Jsunit page result: " + JSON.stringify(result));
62 let obj: ESObject = JSON.parse(strJson);
63 console.info("[StorageProp22Jsunit_0100] component obj is: " + JSON.stringify(obj));
64 console.info("[StorageProp22Jsunit_0100] text: " + JSON.stringify(obj.$attrs.content));
73 let obj: ESObject = JSON.parse(strJson);
74 console.info("[StorageProp22Jsunit_0200] component obj is: " + JSON.stringify(obj));
75 console.info("[StorageProp22Jsunit_0200] text: " + JSON.stringify(obj.$attrs.content));
85 let obj: ESObject = JSON [all...] |
| /test/xts/acts/arkui/ace_ets_module_noui/ace_ets_module_StateMangagement/ace_ets_module_StateMangagement_api12/entry/src/main/ets/test/ProviderTest/ |
| H A D | Provider1.test.ets | 30 console.info("get Provider1Test state pages: " + JSON.stringify(pages)); 32 console.info("get Provider1Test state pages.name: " + JSON.stringify(pages.name)); 35 console.info("push Provider1Test success: " + JSON.stringify(result)); 59 let obj: ESObject = JSON.parse(strJson); 60 console.info("[Provider1Test_0100] component obj is: " + JSON.stringify(obj)); 64 obj = JSON.parse(strJson); 65 console.info("[Provider1Test_0100] component obj is: " + JSON.stringify(obj)); 69 obj = JSON.parse(strJson); 70 console.info("[Provider1Test_0100] component obj is: " + JSON.stringify(obj)); 92 let obj: ESObject = JSON [all...] |
| /test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_uicontext/ace_ets_module_uicontext_api12/entry/src/main/ets/test/MeasureSizeTest/ |
| H A D | MeasureJsunit.test.ets | 45 console.info('get measureJsunit state pages: ' + JSON.stringify(pages)); 47 console.info('get measureJsunit state pages.name: ' + JSON.stringify(pages.name)); 50 console.info('push measureJsunit page result: ' + JSON.stringify(result)); 74 console.log('[ArkUI_Stage_Measure_0100] component strJsonMaxLine2 is: ' + JSON.stringify(JSON.parse(strJsonMaxLine2))); 75 console.log('[ArkUI_Stage_Measure_0100] component strJsonMaxLine3 is: ' + JSON.stringify(JSON.parse(strJsonMaxLine3))); 76 expect(JSON.parse(strJsonMaxLine2).$attrs.content).assertEqual(JSON.parse(strJsonMaxLine3).$attrs.content); 102 console.log('[ArkUI_Stage_Measure_0200] component strJsonMaxLine2 is: ' + JSON [all...] |
| /third_party/skia/infra/bots/recipe_modules/checkout/examples/full.expected/ |
| H A D | Build-Mac-Clang-x86_64-Debug-CommandBuffer.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 94 "@@@STEP_LOG_LINE@json.output@{@@@", 95 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 96 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 98 "@@@STEP_LOG_LINE@json [all...] |
| H A D | Housekeeper-Weekly-RecreateSKPs.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 94 "@@@STEP_LOG_LINE@json.output@{@@@", 95 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 96 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 98 "@@@STEP_LOG_LINE@json [all...] |
| H A D | cross_repo_trybot.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 96 "@@@STEP_LOG_LINE@json.output@{@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 98 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 99 "@@@STEP_LOG_LINE@json.output@ \"parent_repo\": \"abc123\"@@@", 100 "@@@STEP_LOG_LINE@json [all...] |
| H A D | trybot.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 96 "@@@STEP_LOG_LINE@json.output@{@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 98 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 99 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 100 "@@@STEP_LOG_LINE@json [all...] |
| /third_party/skia/infra/bots/recipes/housekeeper.expected/ |
| H A D | Housekeeper-PerCommit-Trybot.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 96 "@@@STEP_LOG_LINE@json.output@{@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 98 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 99 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 100 "@@@STEP_LOG_LINE@json [all...] |
| H A D | Housekeeper-PerCommit.json | 33 "--json-output", 34 "/path/to/tmp/json", 48 "--json-output", 49 "/path/to/tmp/json", 72 "/path/to/tmp/json", 94 "@@@STEP_LOG_LINE@json.output@{@@@", 95 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 96 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 97 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 98 "@@@STEP_LOG_LINE@json [all...] |
| /foundation/multimedia/image_effect/frameworks/native/utils/common/ |
| H A D | effect_json_helper.cpp | 29 EFFECT_LOGE("[%{public}s:%{public}d] Effect json cond false!", __FUNCTION__, __LINE__); \ 37 EFFECT_LOGE("[%{public}s:%{public}d] Effect json cond false!", __FUNCTION__, __LINE__); \ 44 EffectJson::EffectJson(Json *json, bool isRoot) : json_(json), isRoot_(isRoot) {} in EffectJson() argument 243 void DeleteJson(cJSON *json, bool isAllowDelete = true) in DeleteJson() argument 245 if (isAllowDelete && json != nullptr) { in DeleteJson() 246 cJSON_Delete(json); in DeleteJson() 250 bool EffectJson::Put(const std::string &key, Json *json, boo argument 259 Put(const std::string &key, EffectJsonPtr &json) Put() argument 312 Add(Json *json, bool isAllowDelete) const Add() argument 382 Replace(const std::string &key, Json *json, bool jsonObject) Replace() argument 392 Replace(const std::string &key, EffectJsonPtr &json) Replace() argument 461 cJSON *json = cJSON_Parse(data.c_str()); ParseJsonData() local 467 cJSON *json = cJSON_CreateObject(); CreateObject() local 473 cJSON *json = cJSON_CreateArray(); CreateArray() local [all...] |