I have a Config file with the following contents:
{ "ip": "127.0.0.1", "heartbeat": "1", "ssl": "False", "log_severity": "debug", "port":"9999" }
I used JsonCpp to read the contents of the above configuration file. Reading the contents of the Config file is fine, but writing the contents to the configuration file is not performed. I have the following code:
#include <json/json.h>
The code prints the correct output in the console, however the configuration file is empty when this code is executed. How to make this code work?
source share