4#include <initializer_list>
24 json(const std::
string& s);
31 std::
string dump(
int indent = -1) const;
34 json operator[](const std::
string& key) const;
35 json& operator[](const std::
string& key);
52 return backend->
raw().get<T>();
58 backend->
raw().get_to(out);
62 T
value(
const std::string& key,
const T& default_val)
const {
64 return backend->
raw().value(key, default_val);
69 auto begin() const -> nlohmann::
json::const_iterator;
70 auto
end() const -> nlohmann::
json::const_iterator;
75 json(std::initializer_list<std::pair<std::
string,
json>> init);
76 json& operator=(std::initializer_list<std::pair<std::
string,
json>> init);
const nlohmann::json & raw() const
void get_to(T &out) const
std::string dump(int indent=-1) const
std::shared_ptr< IJsonImpl > impl
T value(const std::string &key, const T &default_val) const
void push_back(const json &value)
auto begin() const -> nlohmann::json::const_iterator
auto end() const -> nlohmann::json::const_iterator