Luvit has now native json
module based on yajl.
// import module
local JSON = require('cjson')
// simple encode/decode loop
local obj, serialized, content
obj = { 1, 2, 3, 4 }
p(obj)
serialized = JSON.stringify(obj)
p(serialized)
content = JSON.parse(serialized)
p(content)
assert(obj[2] == content[2])