8 #ifndef ADOBE_JSON_HELPER_HPP
9 #define ADOBE_JSON_HELPER_HPP
12 #include <adobe/any_regular.hpp>
14 #include <adobe/dictionary.hpp>
44 const std::type_info&
type(x.type_info());
53 ADOBE_ASSERT(
false &&
"invalid type for serialization");
69 array.emplace_back(std::move(value));
111 template <
typename O>
A utility class that uses a helper class to access a provided data structure and output well-formed J...
adobe::dictionary_t object_type
O json_generate(const adobe::any_regular_t &x, O out)
A utility routine that takes in an any_regular_t and produces from it a well-formed representation of...
A utility class that parses raw JSON data and uses a helper class to construct the desired representa...
static void append(string_type &str, const char *f, const char *l)
adobe::array_t array_type
static void move_append(array_type &array, value_type &value)
static json_type type(const value_type &x)
static const T & as(const value_type &x)
static void move_append(object_type &obj, key_type &key, value_type &value)
std::vector< any_regular_t > array_t
adobe::any_regular_t json_parse(const char *data)
A utility routine that takes in raw JSON data and produces a representation of that data using the co...
object_type::value_type pair_type
A utility class can be used with json_parser and json_generator to round trip JSON data through the c...
adobe::any_regular_t value_type