Home
last modified time | relevance | path

Searched refs:jsonData (Results 1 – 6 of 6) sorted by relevance

/base/account/os_account/services/accountmgr/src/
Daccount_helper_data.cpp36 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 …]
Dohos_account_data_deal.cpp108 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/
Dgroup_operation_common.c993 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/
Dohos_account_data_deal.h46 … ErrCode ParseJsonFromFile(const std::string &filePath, nlohmann::json &jsonData, int32_t userId);
/base/account/os_account/frameworks/common/file_operator/src/
Daccount_file_operator.cpp157 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/
Ddevice_profile_adapter.cpp102 std::string jsonData = profile.GetCharacteristicProfileJson(); in GetCrossingSwitchState() local
104 parser.json = cJSON_Parse(jsonData.c_str()); in GetCrossingSwitchState()