$darkmode
#include <force_compiler_to_stop_here>#include <string>#include <nlohmann/detail/value_t.hpp>#include <nlohmann/json_fwd.hpp>Go to the source code of this file.
Typedefs | |
| using | fable::Json = nlohmann::json |
| using | fable::JsonPointer = nlohmann::json_pointer< std::string > |
| typedef nlohmann::json fable::Json |
The Json type maps to nlohmann::json.
Bringing it into the fable namespace makes it much easier to use. Making it start with capital J prevents any collision with builtins. Because it is a using statement, standard nlohmann::json constructs can be used, such as to_json and from_json.
| typedef nlohmann::json_pointer< std::string > fable::JsonPointer |
The JsonPointer type maps to nlohmann::json_pointer.
This makes it easier to talk/write about operations that deal with JSON pointers.