Fast Json reader/writer
#include "JsonStthm.h"
JsonStthm::JsonValue oJson;
oJson.ReadFile("data.json");
// Or (faster but read only)
JsonStthm::JsonDoc oJson;
oJson.ReadFile("data.json");
#include "JsonStthm.h"
JsonStthm::JsonValue oValue;
JsonStthm::JsonValue& oArray = oValue["myArray"];
oArray[0] = "test";
oArray[1] = false;
oArray[2] = 3.14159265359f;
JsonStthm::String sOut;
oValue.WriteString(sOut);
Content of sOut
{
"myArray": [
"test",
false,
3.1415927410125732
]
}