11 #include <json/json.h>
JsonJig()
constructs a plain object ready to have values added
Definition: JsonJig.cpp:15
~JsonJig()
properly cleans up
Definition: JsonJig.cpp:27
bool readFromFile(const char *path)
reads a jsonfiles contents
Definition: JsonJig.cpp:32
bool writeToFile(const char *path)
writes the currently stored json structure to a file
Definition: JsonJig.cpp:63
Format
enumeration that defines the format the json is going to be written, either if it's minified/compact ...
Definition: JsonJig.h:38
bool readFromString(const std::string &json)
creates a iyf::JsonJig file from an input string instead from a file read from disk ...
Definition: JsonJig.cpp:51
utility class to help managing typical operations on json files. (loading, manipulating, writing)
Definition: JsonJig.h:22
Json::Value & getRoot()
returns the root node of the json structure currently stored
Definition: JsonJig.cpp:99
Json::Value & getValue(const char *path)
traverses the json and trys to find the Json::Value at the specified path
Definition: JsonJig.cpp:104
Represents a JSON value.
Definition: json.h:435
void setValue(const char *path, Json::Value &val)
stets a json Value at a certain position
Definition: JsonJig.cpp:153
Mode
this enum helps to determine the performed operation wheter the file is going to ber read or written ...
Definition: JsonJig.h:28