Lines Matching refs:json
7 #include <base/json/json_reader.h>
8 #include <base/json/json_writer.h>
14 std::unique_ptr<base::Value> CreateValue(const std::string& json) {
15 std::string json2(json);
24 CHECK(value) << "Failed to load JSON: " << message << ", " << json;
29 std::string json;
31 value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
32 return json;
36 const std::string& json) {
37 std::unique_ptr<base::Value> value = CreateValue(json);
40 CHECK(dict) << "Value is not dictionary: " << json;