Skip to content

Conversation

@leico
Copy link

@leico leico commented Aug 30, 2016

usage:

ofxJSON json;
json["Rect"] = ofxJSON :: Convert( ofRectangle(100, 200, 300, 400) );


{
    "Rect"{
          "x"      : 100
        , "y"      : 200
        , "width"  : 300
        , "height" : 400
    }
}

if you like.

leico added 2 commits August 30, 2016 22:57
usage:

ofxJSON json;
json["Rect"] = ofxJSON :: Convert( ofRectangle(100, 200, 300, 400) );
--------
{
	"Rect"{
		  "x"      : 100
		, "y"      : 200
		, "width"  : 300
		, "height" : 400
	}
}
usage:
ofxJSON json;
json.open("data.json");
ofRectangle rect = ofxJSON :: Decode<ofRectangle>(json["rect"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant