BugBlocker/lotus

JSON Parsing Functions

knassar702 opened this issue · 1 comments

JSON Parsing Functions

We gonna use cjson lua package instead of writing another json parsing functions inside lotus

json_string = [[
{
    "admin":"test"
}
]]

local json = require('cjson')
local tab = json.decode(json_string)
json_string = json.encode(tab)