8#define DEFAULT_MAX_RECURSION_DEPTH 200
62 const auto yield = [&](
size_t s) {
72 const auto yield = [&](
size_t s) {
90#undef DEFAULT_MAX_RECURSION_DEPTH
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)
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)
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)
@ legacy_parser_with_string_doubles
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 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)
static constexpr size_t escape_string_yield_check_count
static string to_string(const variant &v, const yield_function_t &yield, const output_formatting format=output_formatting::stringify_large_ints_and_doubles)
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)
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)
fc::optional_delegate< void(size_t)> yield_function_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)
static constexpr uint64_t max_length_limit
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 variant from_string(const string &utf8_str, const parse_type ptype=parse_type::legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
@ stringify_large_ints_and_doubles
wraps boost::filesystem::path to provide platform independent path manipulation.
static constexpr time_point maximum()
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Defines exception's used by fc.
#define FC_CHECK_DEADLINE(DEADLINE,...)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
#define DEFAULT_MAX_RECURSION_DEPTH
std::vector< fc::variant > variants
std::string escape_string(const std::string_view &str, const json::yield_function_t &yield, bool escape_control_chars=true)
#define T(meth, val, expected)
unsigned __int64 uint64_t