BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
5 #define DEFAULT_MAX_RECURSION_DEPTH 200
10 class buffered_istream;
23 #ifdef WITH_EXOTIC_JSON_PARSERS
26 legacy_parser_with_string_doubles = 3,
86 #undef DEFAULT_MAX_RECURSION_DEPTH
An order-perserving dictionary of variant's.
#define DEFAULT_MAX_RECURSION_DEPTH
static string to_string(const T &v, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static variant from_string(const string &utf8_str, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static string to_pretty_string(const variant &v, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static string to_string(const variant &v, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
@ stringify_large_ints_and_doubles
wraps boost::filesystem::path to provide platform independent path manipulation.
std::vector< variant > variants
T as(uint32_t max_depth) const
static void save_to_file(const T &v, const fc::path &fi, bool pretty=true, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
Reads data from an unbuffered stream and enables peek functionality.
static string to_pretty_string(const T &v, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static bool is_valid(const std::string &json_str, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static void save_to_file(const T &v, const std::string &p, bool pretty=true, output_formatting format=stringify_large_ints_and_doubles, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
static T from_file(const fc::path &p, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static variant from_file(const fc::path &p, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static ostream & to_stream(ostream &out, const std::string &)
static variants variants_from_string(const string &utf8_str, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
static variant from_stream(buffered_istream &in, parse_type ptype=legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)