Summary
A simple mod that allows you to easily serialize and deserialize any JSON.
Description
A simple mod that allows you to easily serialize and deserialize any JSON.
Features:
- Full JSON syntax supported (According to https://www.json.org/);
- Serialization/deserialization in few lines of code;
- Pretty JSON serialization;
WIP:
- JSON with comments;
- JSON5;
Classes:
- V30_Json_Value - class for holding any JSON value, can be one of;
- V30_Json_null;
- V30_Json_bool;
- V30_Json_int;
- V30_Json_float;
- V30_Json_string;
- V30_Json_array;
- V30_Json_object;
- V30_Json_Serializer - class responsible for serialization of JSON (Any V30_Json_Value), avaiable options:
- V30_Json_StringSerializer;
- V30_Json_FileSerializer;
- V30_Json_PrettyStringSerializer;
- V30_Json_PrettyFileSerializer;
- V30_Json_Deserializer - class responsible for deserialization of JSON (Any V30_Json_Value), avaiable options:
- V30_Json_StringDeserializer;
- V30_Json_FileDeserializer;
To serialize:
1. Create V30_Json_Value and fill it with data;
2. Create apropriate V30_Json_Serializer;
3. Call Serialize(value) method on created serializer and pass your data in arguments:
To deserialize:
1. Create apropriate V30_Json_Deserializer;
2. Deserialize() method on created deserializer;
3. Resulted value stored in return value;
License
Arma Public License (APL)