|
static variant | from_string (const string &utf8_str, const parse_type ptype=parse_type::legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH) |
|
static variants | variants_from_string (const string &utf8_str, const parse_type ptype=parse_type::legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH) |
|
static string | to_string (const variant &v, const yield_function_t &yield, const output_formatting format=output_formatting::stringify_large_ints_and_doubles) |
|
static string | to_pretty_string (const variant &v, const yield_function_t &yield, const output_formatting format=output_formatting::stringify_large_ints_and_doubles) |
|
static bool | is_valid (const std::string &json_str, const parse_type ptype=parse_type::legacy_parser, const uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH) |
|
template<typename T > |
static bool | save_to_file (const T &v, const fc::path &fi, const bool pretty=true, const output_formatting format=output_formatting::stringify_large_ints_and_doubles) |
|
static bool | save_to_file (const variant &v, const fc::path &fi, const bool pretty=true, const output_formatting format=output_formatting::stringify_large_ints_and_doubles) |
|
static variant | from_file (const fc::path &p, const parse_type ptype=parse_type::legacy_parser, const uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH) |
|
template<typename T > |
static T | from_file (const fc::path &p, const parse_type ptype=parse_type::legacy_parser, const uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH) |
|
template<typename T > |
static string | to_string (const T &v, const fc::time_point &deadline, const output_formatting format=output_formatting::stringify_large_ints_and_doubles, const uint64_t max_len=max_length_limit) |
|
template<typename T > |
static string | to_pretty_string (const T &v, const fc::time_point &deadline=fc::time_point::maximum(), const output_formatting format=output_formatting::stringify_large_ints_and_doubles, const uint64_t max_len=max_length_limit) |
|
template<typename T > |
static bool | save_to_file (const T &v, const std::string &p, const bool pretty=true, const output_formatting format=output_formatting::stringify_large_ints_and_doubles) |
|
Provides interface for json serialization.
json strings are always UTF8
Definition at line 19 of file json.hpp.