1 #ifndef _JSON_OBJECT_H_ 2 #define _JSON_OBJECT_H_ 7 #include <nlohmann_json/json.hpp> 11 using json = nlohmann::json;
48 return !(*
this == json_value);
59 template <
typename Tparam>
60 bool add_value(
const std::string& key,
const Tparam& value);
68 template <
typename Tparam>
69 Tparam
get_value(
const std::string& key)
const;
132 #include "json_object.tcc" 134 #endif // _JSON_OBJECT_H_
bool write_to_file(const std::string &output_location) const
friend std::ostream & operator<<(std::ostream &out, const utilities::JsonObject &json_object)
Tparam get_value(const std::string &key) const
bool add_value(const std::string &key, const Tparam &value)
bool delete_key(const std::string &key)
bool operator==(const JsonObject &json_value) const
bool operator!=(const JsonObject &json_value) const
unsigned int get_size() const
json get_library_json() const