1#include <xrpl/json/Output.h>
2#include <xrpl/json/Writer.h>
3#include <xrpl/json/json_value.h>
17 writer.output(
nullptr);
22 writer.output(value.
asInt());
27 writer.output(value.
asUInt());
42 writer.output(value.
asBool());
48 for (
auto const& i : value)
60 for (
auto const& tag : members)
Members getMemberNames() const
Return a list of the member names.
std::string asString() const
Returns the unquoted string value.
Writer implements an O(1)-space, O(1)-granular output JSON writer.
JSON (JavaScript Object Notation).
Output stringOutput(std::string &s)
std::string jsonAsString(Json::Value const &)
Return the minimal string representation of a Json::Value in O(n) time.
@ stringValue
UTF-8 string value.
@ arrayValue
array value (ordered list)
@ intValue
signed integer value
@ objectValue
object value (collection of name/value pairs).
@ uintValue
unsigned integer value
void outputJson(Json::Value const &, Output const &)
Writes a minimal representation of a Json value to an Output in O(n) time.