pixelscript 0.5.9

Multi language scripting runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- Only included if `pxs_json` feature.

-- Import __dkjson__ lib
local __dkjson__ = require("__dkjson__")

local pxs_json = {}

-- Encode a Tree into a JSON string.
function pxs_json.encode(object)
    return __dkjson__.encode(object)
end

-- Decode a string into a Tree
function pxs_json.decode(string)
    return __dkjson__.decode(string, 1, nil)
end

return pxs_json