/ohos5.0/commonlibrary/rust/ylong_json/tests/ |
H A D | ylong_json_sdv_test.rs | 137 ($json: expr) => { 156 ($json: expr) => { 177 ($json: expr) => { 270 rfc7159_example1_check!(json); in sdv_json_parse() 273 rfc7159_example2_check!(json); in sdv_json_parse() 276 json_parse_test_check!(json); in sdv_json_parse() 286 json["boolean"] = true.into(); in sdv_json_modify() 287 json["number"] = 123.into(); in sdv_json_modify() 343 json = temp; in sdv_json_output() 360 json = temp; in sdv_json_output() [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | auth_message_processor.cpp | 144 void AuthMessageProcessor::CreateSyncDeleteMessageExt(nlohmann::json &json) in CreateSyncDeleteMessageExt() argument 151 void AuthMessageProcessor::CreatePublicKeyMessageExt(nlohmann::json &json) in CreatePublicKeyMessageExt() argument 164 void AuthMessageProcessor::CreateNegotiateMessage(nlohmann::json &json) in CreateNegotiateMessage() argument 193 void AuthMessageProcessor::CreateRespNegotiateMessage(nlohmann::json &json) in CreateRespNegotiateMessage() argument 226 void AuthMessageProcessor::CreateSyncGroupMessage(nlohmann::json &json) in CreateSyncGroupMessage() argument 232 void AuthMessageProcessor::CreateResponseAuthMessage(nlohmann::json &json) in CreateResponseAuthMessage() argument 313 void AuthMessageProcessor::ParseSyncDeleteMessageExt(nlohmann::json &json) in ParseSyncDeleteMessageExt() argument 326 void AuthMessageProcessor::ParsePublicKeyMessageExt(nlohmann::json &json) in ParsePublicKeyMessageExt() argument 360 void AuthMessageProcessor::GetAuthReqMessage(nlohmann::json &json) in GetAuthReqMessage() argument 398 if (!IsInt32(json, TAG_INDEX) || !IsInt32(json, TAG_SLICE_NUM)) { in ParseAuthRequestMessage() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | json_serializer.h | 46 void to_json(nlohmann::json &jsonObject, const MetaData &metaData); 50 void to_json(nlohmann::json &jsonObject, const Metadata &metadata); 64 void to_json(nlohmann::json &jsonObject, const FormInfo &formInfo); 86 void to_json(nlohmann::json &jsonObject, const Result &result); 87 void from_json(const nlohmann::json &jsonObject, Result &result); 96 void to_json(nlohmann::json &jsonObject, const Version &version); 98 void to_json(nlohmann::json &jsonObject, const PackageApp &app); 112 void to_json(nlohmann::json &jsonObject, const Summary &summary); 128 void to_json(nlohmann::json &jsonObject, const HqfInfo &hqfInfo); 157 void to_json(nlohmann::json &jsonObject, const Skill &skill); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | json_util.h | 180 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); 184 return json; 189 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); 193 return json; 199 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); 204 return json; 209 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); 214 return json; 220 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); 231 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 77 cJSON_Delete(json); 91 cJSON_Delete(json); 106 cJSON_Delete(json); 123 cJSON_Delete(json); 139 cJSON_Delete(json); 162 cJSON_Delete(json); 186 cJSON_Delete(json); 214 cJSON_Delete(json); 228 cJSON_Delete(json); 243 cJSON_Delete(json); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/ |
H A D | component_loader_test.cpp | 345 cJSON_Delete(json); 366 cJSON_Delete(json); 388 cJSON_Delete(json); 411 cJSON_Delete(json); 435 cJSON_Delete(json); 460 cJSON_Delete(json); 486 cJSON_Delete(json); 513 cJSON_Delete(json); 541 cJSON_Delete(json); 570 cJSON_Delete(json); [all …]
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/json/nlohmann/ |
H A D | softbus_adapter_json.cpp | 33 nlohmann::json *json = new (std::nothrow) nlohmann::json(); in JSON_CreateObject() local 50 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_Delete() local 73 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_PrintUnformatted() local 100 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_Parse() local 125 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_AddBoolToObject() local 140 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_GetBoolFromOject() local 145 nlohmann::json item = (*json)[key]; in JSON_GetBoolFromOject() 161 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_AddIntegerToObject() local 177 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_GetIntegerFromObject() local 182 nlohmann::json item = (*json)[key]; in JSON_GetIntegerFromObject() [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/ |
H A D | credsmanager_fuzzer.cpp | 129 FreeJson(json); in OnBindRequest() 141 FreeJson(json); in OnAuthRequest() 367 FreeJson(json); in CreateDemoIdenticalAccountGroup() 394 FreeJson(json); in CreateClientSymIdenticalAccountGroup() 417 FreeJson(json); in CreateServerSymIdenticalAccountGroup() 556 FreeJson(json); in CredsManagerTest01() 568 FreeJson(json); in CredsManagerTest02() 577 FreeJson(json); in CredsManagerTest03() 588 FreeJson(json); in CredsManagerTest04() 599 FreeJson(json); in CredsManagerTest05() [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/authentication/ |
H A D | auth_message_processor.h | 97 void CreateNegotiateMessage(nlohmann::json &json); 98 void CreateRespNegotiateMessage(nlohmann::json &json); 99 void CreateSyncGroupMessage(nlohmann::json &json); 100 void CreateResponseAuthMessage(nlohmann::json &json); 101 void ParseAuthResponseMessage(nlohmann::json &json); 102 int32_t ParseAuthRequestMessage(nlohmann::json &json); 106 void ParseResponseFinishMessage(nlohmann::json &json); 107 void GetAuthReqMessage(nlohmann::json &json); 109 void CreatePublicKeyMessageExt(nlohmann::json &json); 110 void ParsePublicKeyMessageExt(nlohmann::json &json); [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | json_flatten_parser.cpp | 54 Parse(json); in JsonFlattenParser() 61 while (curPos < json.length()) { in Parse() 74 std::string json = "{"; in Print() local 81 json += "}"; in Print() 82 return json; in Print() 89 while (curPos < json.length()) { in ParseKey() 108 value = ParseBrackets(json, json[curPos]); in ParseValue() 147 txt.push_back(json[curPos++]); in ParseString() 156 txt.push_back(json[curPos++]); in ParseString() 165 val.push_back(json[curPos++]); in ParseBrackets() [all …]
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/ |
H A D | creds_manager_test.cpp | 132 FreeJson(json); in OnBindRequest() 144 FreeJson(json); in OnAuthRequest() 377 FreeJson(json); in CreateDemoIdenticalAccountGroup() 406 FreeJson(json); in CreateClientSymIdenticalAccountGroup() 434 FreeJson(json); in CreateServerSymIdenticalAccountGroup() 609 FreeJson(json); 619 FreeJson(json); 629 FreeJson(json); 641 FreeJson(json); 653 FreeJson(json); [all …]
|
/ohos5.0/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_system_data_test.cpp | 29 using json = nlohmann::json; typedef 400 nlohmann::json capsJson = nlohmann::json::array(); 419 nlohmann::json capsJson = nlohmann::json::object(); 579 nlohmann::json marginJson = nlohmann::json::array(); 589 nlohmann::json pageSize = nlohmann::json::array(); 607 nlohmann::json opsJson = nlohmann::json::array(); 610 nlohmann::json opsJson2 = nlohmann::json::object(); 1029 nlohmann::json item = nlohmann::json::object(); 1044 nlohmann::json item = nlohmann::json::object(); 1065 nlohmann::json item = nlohmann::json::object(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_layout_property.cpp | 37 LayoutProperty::ToJsonValue(json, filter); in ToJsonValue() 40 ScrollSnapPropToJsonValue(json, filter); in ToJsonValue() 58 json->PutExtAttr("divider", divider, filter); in ToJsonValue() 60 json->PutExtAttr("laneMinLength", in ToJsonValue() 62 json->PutExtAttr("laneMaxLength", in ToJsonValue() 64 json->PutExtAttr("laneGutter", in ToJsonValue() 76 json->PutExtAttr("sticky", "StickyStyle.Header", filter); in ToJsonValue() 82 json->PutExtAttr("sticky", "StickyStyle.None", filter); in ToJsonValue() 84 ScrollSnapPropToJsonValue(json, filter); in ToJsonValue() 111 auto dividerJson = json->GetObject("divider"); in FromJson() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_property.cpp | 105 json->PutExtAttr("position", jsonPosition, filter); in ToJsonValue() 111 json->PutExtAttr("offset", jsonOffset, filter); in ToJsonValue() 117 json->PutExtAttr("offset", jsonOffset, filter); in ToJsonValue() 136 json->PutExtAttr("colorBlend", in ToJsonValue() 138 json->PutExtAttr("blendMode", in ToJsonValue() 175 json->PutExtAttr("shadow", jsonShadow, filter); in ToJsonValue() 235 json->PutExtAttr("backgroundImageResizable", in ToJsonValue() 271 json->Put("motionBlur", motionBlur); in ToJsonValue() 301 json->PutExtAttr("mask", jsonMask, filter); in ToJsonValue() 352 json->PutExtAttr("rotate", jsonValue, filter); in ToJsonValue() [all …]
|
/ohos5.0/base/security/security_component_manager/frameworks/security_component/src/ |
H A D | sec_comp_base.cpp | 68 if ((json.find(tag) == json.end()) || !json.at(tag).is_number_float()) { in ParseDimension() 79 if ((json.find(tag) == json.end()) || !json.at(tag).is_number()) { in ParseColor() 90 if ((json.find(tag) == json.end()) || !json.at(tag).is_boolean()) { in ParseBool() 101 if ((json.find(tag) == json.end()) || !json.at(tag).is_string()) { in ParseString() 112 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParsePadding() 135 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParseColors() 154 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParseBorders() 164 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParseSize() 191 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParseParent() 222 if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { in ParseRect() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 27 if (json == NULL || string == NULL || target == NULL) { in GetStringItemByJsonObject() 205 if (!cJSON_AddItemToObject(json, string, item)) { in AddStringToJsonObject() 224 if (!cJSON_AddItemToObject(json, string, item)) { in AddStringArrayToJsonObject() 234 if (json == NULL || string == NULL) { in AddNumber16ToJsonObject() 243 if (!cJSON_AddItemToObject(json, string, item)) { in AddNumber16ToJsonObject() 253 if (json == NULL || string == NULL) { in AddNumberToJsonObject() 262 if (!cJSON_AddItemToObject(json, string, item)) { in AddNumberToJsonObject() 272 if (json == NULL || string == NULL) { in AddNumber64ToJsonObject() 281 if (!cJSON_AddItemToObject(json, string, item)) { in AddNumber64ToJsonObject() 291 if (json == NULL || string == NULL) { in AddBoolToJsonObject() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | render_property_test_ng.cpp | 199 json->Delete(SHADOW_TEST); 209 json->Delete(SHADOW_TEST); 218 json->Delete(SHADOW_TEST); 228 json->Delete(SHADOW_TEST); 238 json->Delete(SHADOW_TEST); 248 json->Delete(SHADOW_TEST); 273 json->Delete(SHADOW_TEST); 370 json->Delete("clip"); 371 json->Delete("mask"); 461 json->Delete("rotate"); [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 1435 PackOsInfo(json, info); in PackCommon() 1436 PackDeviceVersion(json, info); in PackCommon() 1437 PackCommonFastAuth(json, info); in PackCommon() 1441 PackCommP2pInfo(json, info); in PackCommon() 1981 if (json == NULL) { in PackDeviceInfoMessage() 1994 JSON_Delete(json); in PackDeviceInfoMessage() 2001 JSON_Delete(json); in PackDeviceInfoMessage() 2008 JSON_Delete(json); in PackDeviceInfoMessage() 2064 if (json == NULL) { in UnpackDeviceInfoMessage() 2078 JSON_Delete(json); in UnpackDeviceInfoMessage() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/ |
H A D | json_serializer.h | 33 void to_json(nlohmann::json &jsonObject, const MetaData &metaData); 34 void to_json(nlohmann::json &jsonObject, const Metadata &metadata); 35 void to_json(nlohmann::json &jsonObject, const AbilityInfo &abilityInfo); 37 void from_json(const nlohmann::json &jsonObject, MetaData &metaData); 38 void from_json(const nlohmann::json &jsonObject, Metadata &metadata); 42 void from_json(const nlohmann::json &jsonObject, Resource &resource); 43 void to_json(nlohmann::json &jsonObject, const Resource &resource); 46 void from_json(const nlohmann::json &jsonObject, ProxyData &proxyData); 47 void to_json(nlohmann::json &jsonObject, const ProxyData &proxyData); 49 void to_json(nlohmann::json &jsonObject, const Dependency &dependency); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/ |
H A D | cjson_util.cpp | 38 if (json == nullptr || !cJSON_IsObject(json)) { in GetIntValue() 41 cJSON* intJson = cJSON_GetObjectItem(json, key.c_str()); in GetIntValue() 50 if (json == nullptr || !cJSON_IsObject(json)) { in GetDoubleValue() 62 if (json == nullptr || !cJSON_IsObject(json)) { in GetStringValue() 65 cJSON* str = cJSON_GetObjectItem(json, key.c_str()); in GetStringValue() 74 if (json == nullptr || !cJSON_IsObject(json)) { in GetStringArray() 96 if (json == nullptr || !cJSON_IsObject(json)) { in GetObjectValue() 99 cJSON* obj = cJSON_GetObjectItem(json, key.c_str()); in GetObjectValue() 108 if (json == nullptr || !cJSON_IsObject(json)) { in GetArrayValue() 111 cJSON* value = cJSON_GetObjectItem(json, key.c_str()); in GetArrayValue() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/ |
H A D | bt_statistic.cpp | 75 int32_t BtStatistic::GetBtStatisticInfo(cJSON *json) in GetBtStatisticInfo() argument 77 if (json == nullptr) { in GetBtStatisticInfo() 99 if (json == nullptr) { in AddDevicesToArray() 128 if (json == nullptr) { in GetGattDeviceInfo() 135 AddDevicesToArray(json, devices, gattId); in GetGattDeviceInfo() 177 void BtStatistic::GetAvrCTDeviceInfo(cJSON *json) in GetAvrCTDeviceInfo() argument 184 void BtStatistic::GetAvrTGDeviceInfo(cJSON *json) in GetAvrTGDeviceInfo() argument 191 void BtStatistic::GetHfpAGDeviceInfo(cJSON *json) in GetHfpAGDeviceInfo() argument 198 void BtStatistic::GetHfpHFDeviceInfo(cJSON *json) in GetHfpHFDeviceInfo() argument 226 void BtStatistic::GetOppDeviceInfo(cJSON *json) in GetOppDeviceInfo() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_layout_property.cpp | 78 LayoutProperty::ToJsonValue(json, filter); in ToJsonValue() 84 json->PutExtAttr("fontColor", in ToJsonValue() 89 json->PutExtAttr("renderingStrategy", in ToJsonValue() 104 json->PutExtAttr("textCase", in ToJsonValue() 110 json->PutExtAttr("textBaseline", in ToJsonValue() 113 json->PutExtAttr("baselineOffset", in ToJsonValue() 115 json->PutExtAttr("textAlign", in ToJsonValue() 117 json->PutExtAttr("textOverflow", in ToJsonValue() 128 json->PutExtAttr("wordBreak", in ToJsonValue() 132 json->PutExtAttr("ellipsisMode", in ToJsonValue() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_json.c | 37 cJSON *json = cJSON_CreateObject(); in VerifyP2pPackError() local 38 if (json == NULL) { in VerifyP2pPackError() 45 cJSON_Delete(json); in VerifyP2pPackError() 48 char *data = cJSON_PrintUnformatted(json); in VerifyP2pPackError() 49 cJSON_Delete(json); in VerifyP2pPackError() 59 cJSON *json = cJSON_CreateObject(); in VerifyP2pPack() local 60 if (json == NULL) { in VerifyP2pPack() 65 AddStringToJsonObject(json, PEER_IP, peerIp); in VerifyP2pPack() 70 cJSON_Delete(json); in VerifyP2pPack() 74 char *data = cJSON_PrintUnformatted(json); in VerifyP2pPack() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/serializable/ |
H A D | serializable.h | 33 using json = nlohmann::json; 34 using size_type = nlohmann::json::size_type; 37 API_EXPORT json Marshall() const; 41 json root; in Marshall() 54 virtual bool Marshal(json &node) const = 0; 55 virtual bool Unmarshal(const json &node) = 0; 107 static bool SetValue(json &node, const T *value); 120 API_EXPORT static const json &GetSubNode(const json &node, const std::string &name); 143 node = json::value_t::array; in SetValue() 169 node = json::value_t::object; in SetValue() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/serializable/ |
H A D | serializable.cpp | 19 Serializable::json Serializable::Marshall() const in Marshall() 21 json root; in Marshall() 28 json jsonObj = json::parse(jsonStr, nullptr, false); in Unmarshall() 44 json jsonObj = json::parse(jsonStr, nullptr, false); in ToJson() 60 if (!json::accept(jsonStr)) { in IsJson() 61 return json::accept(jsonStr.begin() + 1, jsonStr.end()); in IsJson() 175 bool Serializable::SetValue(json &node, const int32_t &value) in SetValue() 181 bool Serializable::SetValue(json &node, const int64_t &value) in SetValue() 187 bool Serializable::SetValue(json &node, const double &value) in SetValue() 216 const Serializable::json &Serializable::GetSubNode(const json &node, const std::string &name) in GetSubNode() [all …]
|