Lines Matching defs:json
52 #include "nlohmann/json.hpp"
107 constexpr const char *HOME_MANIFEST = "home/manifest.json";
108 constexpr const char *LOCK_MANIFEST = "lock/manifest.json";
1500 nlohmann::json root;
1508 std::string json = root.dump();
1509 if (json.empty()) {
1510 HILOG_ERROR("write user config file failed. because json content is empty.");
1521 ssize_t size = write(fd, json.c_str(), json.size());
1560 auto root = nlohmann::json::parse(buf);
1603 if (!nlohmann::json::accept(content)) {
1607 auto root = nlohmann::json::parse(content.c_str());