14 lines
309 B
C++
14 lines
309 B
C++
#include <iostream>
|
|
#include <jsoncpp/json/json.h>
|
|
#include "xdgjson.hpp"
|
|
|
|
int main()
|
|
{
|
|
xdgjson config("test.json", "xdgjson");
|
|
config.read();
|
|
Json::Value &json = config.get_json();
|
|
std::cout << "Hello: " << json["Hello"].asString() << '\n';
|
|
json["Hello"] = "World";
|
|
config.write();
|
|
}
|