-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
I have json like below. Now I want to check if given file is in array and open it. I tried get() but it does not work. this code crashes
std::string pluginNameStr = "DOESNOTEXIST.json";
Json::Value p = m_jsonPlugins.get(pluginNameStr, 0);
if(!p.empty())
{
ret = p.asCString();
}
{
"plugins" : [ "/home/stefano/plugins/prefs/Git.json" ]
}
What is right way of dealing with arrays?
Metadata
Metadata
Assignees
Labels
No labels