JSON library module for OTClient
This module use rxi/json.lua library: https://github.com/rxi/json.lua
Download ZIP from site
or
Clone repository using git command (with git submodules to download json.lua)
git clone --recurse-submodules --remote-submodules https://github.com/EgzoT/otc_json.git
Add folder [otc_json] to "mods" or "modules" folder (recommended "mods" folder) in your main OTClient folder.
print(JSON.encode({test = 2}))
print(JSON.decode('{"test": 2}')['test'])