Log In  

Cart #json-1 | 2024-03-25 | Embed ▽ | No License
3

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)
P#144398 2024-03-25 11:44 ( Edited 2024-03-28 05:40)


[Please log in to post a comment]