Home | History | Annotate | Download | only in chromium

Lines Matching defs:Json

5 #include "cpp/src/util/json.h"
8 #include "base/json/json_reader.h"
18 // A base class for Chrome Json objects. JSON gets parsed into a
19 // base::DictionaryValue and data is accessed via the Json interface.
20 class ChromeJson : public Json {
25 scoped_ptr<Json>* value) const OVERRIDE;
35 // A Json object that will parse a string and own the parsed data.
41 virtual bool ParseObject(const std::string& json) OVERRIDE {
44 // |json| is converted to a |c_str()| here because rapidjson and other parts
46 scoped_ptr<base::Value> parsed(base::JSONReader::Read(json.c_str()));
64 // A Json object which will point to data that's been parsed by a different
73 virtual bool ParseObject(const std::string& json) OVERRIDE {
97 scoped_ptr<Json>* value) const {
112 Json::~Json() {}
115 scoped_ptr<Json> Json::Build() {
116 return scoped_ptr<Json>(new JsonDataOwner);
119 Json::Json() {}