1 #ifndef WREPORT_UTILS_JSON_H
2 #define WREPORT_UTILS_JSON_H
18 std::stringstream& out;
21 void adds(
const std::string& val);
22 void addu(
unsigned val);
23 void addq(
const std::string& val);
26 explicit JSON(std::stringstream& out);
32 explicit JSONL(std::stringstream& out);
43 void maybe_add_comma();
52 explicit Dict(std::stringstream& out);
55 void add_null(
const char* key);
56 void add_bool(
const char* key,
bool val);
57 void add(
const char* key,
const std::string& val);
58 void add_unsigned(
const char* key,
unsigned val);
59 void add_nullable(
const char* key, uint8_t val, uint8_t nullval);
60 void add_nullable(
const char* key, uint16_t val, uint16_t nullval);
61 Dict add_dict(
const char* key);
62 List add_list(
const char* key);
68 explicit List(std::stringstream& out);
Limited JSON output used for tests.
Definition: json.h:11