Json deserialization and serialization.
Json deserialization and serialization.
class Json::Value
A value in a Json tree. Can be an array, object, or any other value.
Value@ Json::Parse(const string&in json)
Deserializes (parses) a string into a Json value tree.
Json::Value@ string Json::Write(const Value@ value, bool pretty = false)
Serializes a Json value tree to a string.
string Value@ Json::FromFile(const string&in filename)
Deserialize (parses) contents of a file into a Json value tree. This can either be a file on disk or a file that's part of the plugin hierarchy.
Json::Value@ void Json::ToFile(const string&in filename, const Value@ value, bool pretty = false)
Serializes a Json value tree to a file.
enum Json::Type
Json value type that a Value might be.