20 #include <ripple/json/Output.h>
21 #include <ripple/json/Writer.h>
33 writer.output(
nullptr);
38 writer.output(value.
asInt());
43 writer.output(value.
asUInt());
58 writer.output(value.
asBool());
64 for (
auto const& i : value)
75 auto members = value.getMemberNames();
76 for (
auto const& tag : members)
std::string jsonAsString(Json::Value const &value)
Return the minimal string representation of a Json::Value in O(n) time.
@ arrayValue
array value (ordered list)
@ uintValue
unsigned integer value
void outputJson(Json::Value const &value, Output const &out)
Writes a minimal representation of a Json value to an Output in O(n) time.
JSON (JavaScript Object Notation).
@ objectValue
object value (collection of name/value pairs).
@ stringValue
UTF-8 string value.
@ intValue
signed integer value
Output stringOutput(std::string &s)
Writer implements an O(1)-space, O(1)-granular output JSON writer.
std::string asString() const
Returns the unquoted string value.