mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
22 lines
297 B
C++
22 lines
297 B
C++
#include <xrpl/json/to_string.h>
|
|
|
|
#include <xrpl/json/json_writer.h>
|
|
|
|
#include <string>
|
|
|
|
namespace json {
|
|
|
|
std::string
|
|
to_string(Value const& value)
|
|
{
|
|
return FastWriter().write(value);
|
|
}
|
|
|
|
std::string
|
|
pretty(Value const& value)
|
|
{
|
|
return StyledWriter().write(value);
|
|
}
|
|
|
|
} // namespace json
|