Searched refs:jsonData (Results 1 – 6 of 6) sorted by relevance
/base/account/os_account/services/accountmgr/src/ |
D | account_helper_data.cpp | 36 static bool ParseJsonData(nlohmann::json &jsonData) in ParseJsonData() argument 49 jsonData = json::parse(fin, nullptr, false); in ParseJsonData() 50 if (!jsonData.is_structured()) { in ParseJsonData() 63 nlohmann::json jsonData; in GetBundleNameTrustList() local 64 if (!ParseJsonData(jsonData)) { in GetBundleNameTrustList() 68 …if (jsonData.find(KEY_BUNDLE_NAME_LIST) != jsonData.end() && jsonData.at(KEY_BUNDLE_NAME_LIST).is_… in GetBundleNameTrustList() 69 result = jsonData.at(KEY_BUNDLE_NAME_LIST).get<std::vector<std::string>>(); in GetBundleNameTrustList() 78 nlohmann::json jsonData; in GetAccountEventMap() local 79 if (!ParseJsonData(jsonData)) { in GetAccountEventMap() 83 if (jsonData.find(KEY_ACCOUNT_EVENT_MAP) != jsonData.end()) { in GetAccountEventMap() [all …]
|
D | ohos_account_data_deal.cpp | 108 nlohmann::json jsonData = json { in SaveAccountInfo() 120 std::string accountInfoValue = jsonData.dump(-1, ' ', false, json::error_handler_t::ignore); in SaveAccountInfo() 158 …tDataDeal::ParseJsonFromFile(const std::string &filePath, nlohmann::json &jsonData, int32_t userId) in ParseJsonFromFile() argument 167 jsonData = json::parse(fin, nullptr, false); in ParseJsonFromFile() 169 if (!jsonData.is_structured()) { in ParseJsonFromFile()
|
/base/security/device_auth/services/group_manager/src/group_operation/ |
D | group_operation_common.c | 993 CJson *jsonData = CreateJson(); in GenerateBindSuccessData() local 994 if (jsonData == NULL) { in GenerateBindSuccessData() 998 if (AddStringToJson(jsonData, FIELD_GROUP_ID, groupId) != HC_SUCCESS) { in GenerateBindSuccessData() 1000 FreeJson(jsonData); in GenerateBindSuccessData() 1003 if (AddStringToJson(jsonData, FIELD_ADD_ID, peerAuthId) != HC_SUCCESS) { in GenerateBindSuccessData() 1005 FreeJson(jsonData); in GenerateBindSuccessData() 1008 char *jsonDataStr = PackJsonToString(jsonData); in GenerateBindSuccessData() 1009 FreeJson(jsonData); in GenerateBindSuccessData() 1032 CJson *jsonData = CreateJson(); in GenerateUnbindSuccessData() local 1033 if (jsonData == NULL) { in GenerateUnbindSuccessData() [all …]
|
/base/account/os_account/services/accountmgr/include/ |
D | ohos_account_data_deal.h | 46 … ErrCode ParseJsonFromFile(const std::string &filePath, nlohmann::json &jsonData, int32_t userId);
|
/base/account/os_account/frameworks/common/file_operator/src/ |
D | account_file_operator.cpp | 157 nlohmann::json jsonData = nlohmann::json::parse(fin, nullptr, false); in IsJsonFormat() local 159 if (!jsonData.is_structured()) { in IsJsonFormat()
|
/base/msdp/device_status/services/interaction/coordination/src/ |
D | device_profile_adapter.cpp | 102 std::string jsonData = profile.GetCharacteristicProfileJson(); in GetCrossingSwitchState() local 104 parser.json = cJSON_Parse(jsonData.c_str()); in GetCrossingSwitchState()
|