Home | History | Annotate | Download | only in json

Lines Matching refs:json

5 #include "base/json/json_reader.h"
7 #include "base/json/json_parser.h"
30 "Unsupported encoding. JSON must be UTF-8.";
46 scoped_ptr<Value> JSONReader::Read(const StringPiece& json) {
48 return make_scoped_ptr(parser.Parse(json));
52 scoped_ptr<Value> JSONReader::Read(const StringPiece& json, int options) {
54 return make_scoped_ptr(parser.Parse(json));
59 scoped_ptr<Value> JSONReader::ReadAndReturnError(const StringPiece& json,
66 scoped_ptr<Value> root(parser.Parse(json));
108 scoped_ptr<Value> JSONReader::ReadToValue(const std::string& json) {
109 return make_scoped_ptr(parser_->Parse(json));