Last active
November 23, 2015 09:46
-
-
Save fukuroder/24cb41fdac346deff580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../JuceLibraryCode/JuceHeader.h" | |
int main() | |
{ | |
DynamicObject* obj1 = new DynamicObject(); | |
obj1->setProperty("b", Array<var>{1, 2, 3, 4}); | |
DynamicObject* obj2 = new DynamicObject(); | |
obj2->setProperty("c", Array<var>{6, 7, 8, 9}); | |
DynamicObject* obj3 = new DynamicObject(); | |
obj3->setProperty("a", Array<var>{obj1, obj2}); | |
std::cout << JSON::toString(obj3, true) << std::endl; | |
// {"a": [{"b": [1, 2, 3, 4]}, {"c": [6, 7, 8, 9]}]} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment