To install library, use load #json
then ctrl+r
Library will be installed at /appdata/system/lib/json.lua
(Slightly) Modified version of https://github.com/rxi/json.lua
Example:
include("/appdata/system/lib/json.lua") --Make something to encode obj = { a = "hello", b = "world", c = 1234 } -- Encode json encoded = json.encode(obj) print(encoded) -- Decode json decoded = json.decode(encoded) print(decoded.a) |
[Please log in to post a comment]