35 explicit JsonObject(
const std::filesystem::path& jsonFile );
36 explicit JsonObject(
const std::string& inline_json);
41 void add(
double value);
43 void add(
const std::string& value);
46 void add_item(
const std::string& key,
double value);
47 void add_item(
const std::string& key,
int value);
48 void add_item(
const std::string& key,
const std::string& value);
51 std::string dump()
const;
53 bool has_item(
const std::string& key)
const;
54 JsonObject get_array_item( std::size_t index )
const;
55 JsonObject get_item(
const std::string& key)
const;
57 std::string to_string()
const;
58 std::string get_string(
const std::string& key)
const;
59 std::string as_string()
const;
60 bool is_string( )
const;
62 bool is_number( )
const;
63 int get_int(
const std::string& key)
const;
65 double get_double(
const std::string& key)
const;
66 double as_double()
const;
68 bool is_array( )
const;
69 bool is_object( )
const;
71 std::size_t size()
const;
73 JsonObject get_scalar_object(
const std::string& key)
const;
74 void initialize(
const std::string& inline_json);