This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofJson.h
Go to the documentation of this file.
29 ofLogError("ofLoadJson") << "Error loading json from " << filename.string() << ": file doesn't exist";
61 ofLogError("ofSavePrettyJson") << "Error saving json to " << filename.string() << ": " << e.what();
105 }else if(parameter.type() == typeid(ofParameter <float> ).name() && json[name].is_number_float()){
109 }else if(parameter.type() == typeid(ofParameter <int64_t> ).name() && json[name].is_number_integer()){
Base class for ofParameter, ofReadOnlyParameter and ofParameterGroup.
Definition ofParameter.h:24
virtual std::string toString() const =0
virtual std::string getEscapedName() const
Definition ofParameter.cpp:6
virtual bool isSerializable() const =0
virtual void fromString(const std::string &str)=0
Definition ofFileUtils.h:472
Definition ofParameter.h:84
void ofDeserialize(const ofJson &json, ofAbstractParameter ¶meter)
Definition ofJson.h:91
bool ofSavePrettyJson(const of::filesystem::path &filename, const ofJson &json)
Save "pretty" indented Json to the given path.
Definition ofJson.h:56
ofJson ofLoadJson(const of::filesystem::path &filename)
Load Json from the given path.
Definition ofJson.h:17
bool ofSaveJson(const of::filesystem::path &filename, const ofJson &json)
Save minified Json to the given path.
Definition ofJson.h:38