Unserialize a JSON document into a Value. More...
#include <json.h>
Classes | |
class | ErrorInfo |
struct | StructuredError |
An error tagged with where in the JSON text it was encountered. More... | |
class | Token |
Public Types | |
typedef char | Char |
typedef char | Char |
Public Member Functions | |
std::string | getFormatedErrorMessages () const |
Returns a user friendly string that list errors in the parsed document. More... | |
std::string | getFormatedErrorMessages () const |
Returns a user friendly string that list errors in the parsed document. More... | |
std::string | getFormattedErrorMessages () const |
Returns a user friendly string that list errors in the parsed document. More... | |
std::string | getFormattedErrorMessages () const |
Returns a user friendly string that list errors in the parsed document. More... | |
std::vector< StructuredError > | getStructuredErrors () const |
Returns a vector of structured erros encounted while parsing. More... | |
std::vector< StructuredError > | getStructuredErrors () const |
Returns a vector of structured errors encountered while parsing. More... | |
bool | good () const |
Return whether there are any errors. More... | |
bool | good () const |
Return whether there are any errors. More... | |
bool | parse (const char *beginDoc, const char *endDoc, Value &root, bool collectComments=true) |
Read a Value from a JSON document. More... | |
bool | parse (const char *beginDoc, const char *endDoc, Value &root, bool collectComments=true) |
Read a Value from a JSON document. More... | |
bool | parse (const std::string &document, Value &root, bool collectComments=true) |
Read a Value from a JSON document. More... | |
bool | parse (const std::string &document, Value &root, bool collectComments=true) |
Read a Value from a JSON document. More... | |
bool | parse (std::istream &is, Value &root, bool collectComments=true) |
Parse from input stream. More... | |
bool | parse (std::istream &is, Value &root, bool collectComments=true) |
Parse from input stream. More... | |
bool | pushError (const Value &value, const std::string &message) |
Add a semantic error message. More... | |
bool | pushError (const Value &value, const std::string &message) |
Add a semantic error message. More... | |
bool | pushError (const Value &value, const std::string &message, const Value &extra) |
Add a semantic error message with extra context. More... | |
bool | pushError (const Value &value, const std::string &message, const Value &extra) |
Add a semantic error message with extra context. More... | |
Reader () | |
Constructs a Reader allowing all features for parsing. More... | |
Reader () | |
Constructs a Reader allowing all features for parsing. More... | |
Reader (const Features &features) | |
Constructs a Reader allowing the specified feature set for parsing. More... | |
Reader (const Features &features) | |
Constructs a Reader allowing the specified feature set for parsing. More... | |
Public Attributes | |
const typedef Char * | Location |
Private Attributes | |
Location | begin_ |
bool | collectComments_ |
std::string | commentsBefore_ |
Location | current_ |
std::string | document_ |
Location | end_ |
Errors | errors_ |
Features | features_ |
Value * | lastValue_ |
Location | lastValueEnd_ |
Nodes | nodes_ |
Unserialize a JSON document into a Value.
Definition at line 1281 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef char Json::Reader::Char |
Definition at line 1283 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef char Json::Reader::Char |
Definition at line 1283 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1438 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1438 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1479 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1479 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1407 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1407 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Json::Reader::Reader | ( | ) |
Constructs a Reader allowing all features for parsing.
Definition at line 274 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Constructs a Reader allowing the specified feature set for parsing.
Definition at line 279 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Json::Reader::Reader | ( | ) |
Constructs a Reader allowing all features for parsing.
Constructs a Reader allowing the specified feature set for parsing.
|
private |
Definition at line 576 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 936 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
|
private |
Definition at line 958 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 965 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 792 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 802 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 740 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 750 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 814 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 825 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 878 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 907 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::string Json::Reader::getFormatedErrorMessages | ( | ) | const |
Returns a user friendly string that list errors in the parsed document.
std::string Json::Reader::getFormatedErrorMessages | ( | ) | const |
Returns a user friendly string that list errors in the parsed document.
Definition at line 1005 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::string Json::Reader::getFormattedErrorMessages | ( | ) | const |
Returns a user friendly string that list errors in the parsed document.
std::string Json::Reader::getFormattedErrorMessages | ( | ) | const |
Returns a user friendly string that list errors in the parsed document.
Definition at line 1009 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 996 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 973 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
|
private |
Definition at line 967 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::vector<StructuredError> Json::Reader::getStructuredErrors | ( | ) | const |
Returns a vector of structured errors encountered while parsing.
std::vector< Reader::StructuredError > Json::Reader::getStructuredErrors | ( | ) | const |
Returns a vector of structured erros encounted while parsing.
Definition at line 1025 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::good | ( | ) | const |
Return whether there are any errors.
true
if there are no errors to report false
if errors have occurred. Definition at line 1075 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::good | ( | ) | const |
Return whether there are any errors.
true
if there are no errors to report false
if errors have occurred. Definition at line 522 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::parse | ( | const char * | beginDoc, |
const char * | endDoc, | ||
Value & | root, | ||
bool | collectComments = true |
||
) |
Read a Value from a JSON document.
beginDoc | Pointer on the beginning of the UTF-8 encoded string of the document to read. |
endDoc | Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc. |
root | [out] Contains the root value of the document if it was successfully parsed. |
collectComments | true to collect comment and allow writing them back during serialization, false to discard comments. This parameter is ignored if Features::allowComments_ is false . |
true
if the document was successfully parsed, false
if an error occurred. bool Json::Reader::parse | ( | const char * | beginDoc, |
const char * | endDoc, | ||
Value & | root, | ||
bool | collectComments = true |
||
) |
Read a Value from a JSON document.
beginDoc | Pointer on the beginning of the UTF-8 encoded string of the document to read. |
endDoc | Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc. |
root | [out] Contains the root value of the document if it was successfully parsed. |
collectComments | true to collect comment and allow writing them back during serialization, false to discard comments. This parameter is ignored if Features::allowComments_ is false . |
true
if the document was successfully parsed, false
if an error occurred. Definition at line 305 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::parse | ( | const std::string & | document, |
Value & | root, | ||
bool | collectComments = true |
||
) |
Read a Value from a JSON document.
document | UTF-8 encoded string containing the document to read. |
root | [out] Contains the root value of the document if it was successfully parsed. |
collectComments | true to collect comment and allow writing them back during serialization, false to discard comments. This parameter is ignored if Features::allowComments_ is false . |
true
if the document was successfully parsed, false
if an error occurred. Definition at line 285 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::parse | ( | const std::string & | document, |
Value & | root, | ||
bool | collectComments = true |
||
) |
Read a Value from a JSON document.
document | UTF-8 encoded string containing the document to read. |
root | [out] Contains the root value of the document if it was successfully parsed. |
collectComments | true to collect comment and allow writing them back during serialization, false to discard comments. This parameter is ignored if Features::allowComments_ is false . |
true
if the document was successfully parsed, false
if an error occurred. Parse from input stream.
Parse from input stream.
Definition at line 292 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Add a semantic error message.
value | JSON Value location associated with the error |
message | The error message. |
true
if the error was successfully added, false
if the Value offset exceeds the document size. Definition at line 1040 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::pushError | ( | const Value & | value, |
const std::string & | message, | ||
const Value & | extra | ||
) |
Add a semantic error message with extra context.
value | JSON Value location associated with the error |
message | The error message. |
extra | Additional JSON Value location to contextualize the error |
true
if the error was successfully added, false
if either Value offset exceeds the document size. Definition at line 1057 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Reader::pushError | ( | const Value & | value, |
const std::string & | message, | ||
const Value & | extra | ||
) |
Add a semantic error message with extra context.
value | JSON Value location associated with the error |
message | The error message. |
extra | Additional JSON Value location to contextualize the error |
true
if the error was successfully added, false
if either Value offset exceeds the document size. Definition at line 702 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 533 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 596 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
Definition at line 587 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 612 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 646 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 634 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 441 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 347 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 945 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
Definition at line 431 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
|
private |
Definition at line 512 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
|
private |
|
private |
|
private |
Definition at line 1483 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1490 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1488 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1485 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1482 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1484 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1481 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1489 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1487 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1486 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Definition at line 1284 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 1480 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.