Lines Matching refs:json
25 #include <base/json/json_reader.h>
26 #include <base/json/json_writer.h>
85 FILE_PATH_LITERAL("*.json"));
90 std::string json;
91 CHECK(LoadFile(path, &json, nullptr));
92 device->AddTraitDefinitionsFromJson(json);
107 std::string json;
108 CHECK(LoadFile(path, &json, nullptr));
109 device->AddCommandDefinitionsFromJson(json);
112 load_packages(options.definitions, FILE_PATH_LITERAL("*.json"));
114 load_packages(options.test_definitions, FILE_PATH_LITERAL("*test.json"));
123 FILE_PATH_LITERAL("*.schema.json"));
128 std::string json;
129 CHECK(LoadFile(path, &json, nullptr));
130 device->AddStateDefinitionsFromJson(json);
140 FILE_PATH_LITERAL("*.defaults.json"));
145 std::string json;
146 CHECK(LoadFile(path, &json, nullptr));
147 CHECK(device->SetStatePropertiesFromJson(json, nullptr));