$darkmode
fable_fwd.hpp File Reference
#include <force_compiler_to_stop_here>
#include <string>
#include <nlohmann/detail/value_t.hpp>
#include <nlohmann/json_fwd.hpp>
Include dependency graph for fable_fwd.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using fable::Json = nlohmann::json
 
using fable::JsonPointer = nlohmann::json_pointer< std::string >
 

Typedef Documentation

◆ Json

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.

Examples
/home/docs/checkouts/readthedocs.org/user_builds/cloe/checkouts/v0.24.0/fable/include/fable/schema.hpp, /home/docs/checkouts/readthedocs.org/user_builds/cloe/checkouts/v0.24.0/fable/include/fable/schema/interface.hpp, and /home/docs/checkouts/readthedocs.org/user_builds/cloe/checkouts/v0.24.0/fable/include/fable/schema/struct.hpp.

◆ JsonPointer

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.