← Back

ofxAnyJson

github.com/ffunatsu/ofxAnyJson · @ffunatsu
OF 0.10 Utilities

Any json-like formats into ofJson

0 0 Last commit 7y ago Created 8y ago

README

ofxAnyJson



Loads any json-like formats as ofJson.

(inspired by any-json)

Dependency



ofxJsonUtils

Usage



#include "ofxAnyJson.h"

//--------------------------------------------------------------
void ofApp::setup(){
	ofJson json = ofxAnyJson::loadJson(ofToDataPath("test.json"));
	ofJson yaml = ofxAnyJson::loadYaml(ofToDataPath("test.yaml"));
	ofJson hjson = ofxAnyJson::loadHjson(ofToDataPath("test.hjson"));
	ofJson toml = ofxAnyJson::loadToml(ofToDataPath("test.toml"));
	ofLog() << "json: " << json;
	ofLog() << "yaml: " << yaml;
	ofLog() << "hjson: " << hjson;
	ofLog() << "toml: " << toml;
}


TODOs



Get this addon

HTTPS
SSH