20 #include <ripple/json/Output.h>
21 #include <ripple/json/Writer.h>
33 writer.output (
nullptr);
39 writer.output (value.
asInt());
45 writer.output (value.
asUInt());
63 writer.output (value.
asBool());
70 for (
auto const& i: value)
82 auto members = value.getMemberNames ();
83 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.