This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
Go to the source code of this file.
Typedefs | |
using | ofJson = nlohmann::json |
Functions | |
ofJson | ofLoadJson (const of::filesystem::path &filename) |
Load Json from the given path. | |
bool | ofSaveJson (const of::filesystem::path &filename, const ofJson &json) |
Save minified Json to the given path. | |
bool | ofSavePrettyJson (const of::filesystem::path &filename, const ofJson &json) |
Save "pretty" indented Json to the given path. | |
void | ofSerialize (ofJson &js, const ofAbstractParameter ¶meter) |
void | ofDeserialize (const ofJson &json, ofAbstractParameter ¶meter) |
Typedef Documentation
◆ ofJson
using ofJson = nlohmann::json |
Function Documentation
◆ ofDeserialize()
|
inline |
◆ ofLoadJson()
|
inline |
Load Json from the given path.
- Parameters
-
filename The file to load from.
- Returns
- loaded json, or an empty json object on failure.
◆ ofSaveJson()
|
inline |
Save minified Json to the given path.
- Parameters
-
filename The destination path. json The Json to save.
- Returns
- true if the json was saved successfully.
◆ ofSavePrettyJson()
|
inline |
Save "pretty" indented Json to the given path.
- Parameters
-
filename The destination path. json The Json to save.
- Returns
- true if the json was saved successfully.
◆ ofSerialize()
|
inline |