examples/input_output/jsonExample/README.md
This example demonstrates how to read and write a json file to the file system leveraging ofJson.
In the code, pay attention to:
ofJson to read a json file from the file system with ofFile file("drawing.json");file.exists()ofFile file("drawing.json", ofFile::WriteOnly);When launching this app for the first time, you will see a screen with:
When the mouse is pressed, the application :
When the key s is pressed:
data\drawing.json file.Instructions for use:
s to save the json file of the current state to a local json fileThis Example uses no other classes.