rippled
|
Holds the serialized result of parsing an input JSON object. More...
Public Member Functions | |
STParsedJSONObject (std::string const &name, Json::Value const &json) | |
Parses and creates an STParsedJSON object. More... | |
STParsedJSONObject ()=delete | |
STParsedJSONObject (STParsedJSONObject const &)=delete | |
STParsedJSONObject & | operator= (STParsedJSONObject const &)=delete |
~STParsedJSONObject ()=default | |
Public Attributes | |
std::optional< STObject > | object |
The STObject if the parse was successful. More... | |
Json::Value | error |
On failure, an appropriate set of error values. More... | |
Holds the serialized result of parsing an input JSON object.
This does validation and checking on the provided JSON.
Definition at line 31 of file STParsedJSON.h.
ripple::STParsedJSONObject::STParsedJSONObject | ( | std::string const & | name, |
Json::Value const & | json | ||
) |
Parses and creates an STParsedJSON object.
The result of the parsing is stored in object and error. Exceptions: Does not throw.
name | The name of the JSON field, used in diagnostics. |
json | The JSON-RPC to parse. |
Definition at line 962 of file STParsedJSON.cpp.
|
delete |
|
delete |
|
default |
|
delete |
std::optional<STObject> ripple::STParsedJSONObject::object |
The STObject if the parse was successful.
Definition at line 50 of file STParsedJSON.h.
Json::Value ripple::STParsedJSONObject::error |
On failure, an appropriate set of error values.
Definition at line 53 of file STParsedJSON.h.