I’m new to C++ and JUCE. I want to read and write my application settings from a file. I’m using a simple JSON structure:
I can use JSON class to parse the file and access the properties through a var object, but I see no way to set new values, except by creating a DynamicObject like this:
config = JSON::parse (“thefile.json”);
auto obj (config.getDynamicObject());
obj->setProperty(“projectName”, “This is the new project name”);
Seems like an extra step. Is there a better way of doing this? Thanks for any suggestions!