8#ifndef ADOBE_JSON_HELPER_HPP
9#define ADOBE_JSON_HELPER_HPP
54 else if (
type ==
typeid(
double))
56 else if (
type ==
typeid(
bool))
75 array.emplace_back(std::move(value));
A utility class that uses a helper class to access a provided data structure and output well-formed J...
O generate(const value_type &value, std::size_t indent=0)
A utility class that parses raw JSON data and uses a helper class to construct the desired representa...
A runtime polymorphic type similar to boost::any which can hold any type which models Regular.
const std::type_info & type_info() const
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...
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...
#define ADOBE_MESSAGE(message)
closed_hash_map< name_t, any_regular_t > dictionary_t
void terminate(const char *)
std::vector< any_regular_t > array_t
A utility class can be used with json_parser and json_generator to round trip JSON data through the c...
static void append(string_type &str, const char *f, const char *l)
static void move_append(object_type &obj, key_type &key, value_type &value)
static json_type type(const value_type &x)
adobe::array_t array_type
static void move_append(array_type &array, value_type &value)
adobe::dictionary_t object_type
object_type::value_type pair_type
adobe::any_regular_t value_type
static const T & as(const value_type &x)
A character string class for immutable strings.
An empty regular- and less-than-comparable- type.