5 #ifndef CVMFS_JSON_DOCUMENT_H_
6 #define CVMFS_JSON_DOCUMENT_H_
15 typedef struct json_value
JSON;
28 static std::string
EscapeString(
const std::string &input);
30 const json_type
type);
42 bool Parse(
const std::string &text);
53 bool GetFromJSON(
const JSON *
object,
const std::string &name, T *value);
55 #endif // CVMFS_JSON_DOCUMENT_H_
block_allocator allocator_
std::string PrintValue(JSON *value, PrintOptions print_options)
std::string PrintObject(JSON *first_child, PrintOptions print_options)
static JSON * SearchInObject(const JSON *json_object, const std::string &name, const json_type type)
bool GetFromJSON(const JSON *object, const std::string &name, T *value)
std::string PrintArray(JSON *first_child, PrintOptions print_options)
bool Parse(const std::string &text)
static const unsigned kDefaultBlockSize
std::string PrintCanonical()
std::string PrintPretty()
static JsonDocument * Create(const std::string &text)
static std::string EscapeString(const std::string &input)
const JSON * root() const