summaryrefslogtreecommitdiff
path: root/meta/3rd/Defold/library/json.lua
blob: 2421d95eb72729a49c268c07175dab03cb53f70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---JSON API documentation
---Manipulation of JSON data strings.
---@class json
json = {}
---Decode a string of JSON data into a Lua table.
---A Lua error is raised for syntax errors.
---@param json string # json data
---@return table # decoded json
function json.decode(json) end

---Encode a lua table to a JSON string.
---A Lua error is raised for syntax errors.
---@param tbl table # lua table to encode
---@return string # encoded json
function json.encode(tbl) end




return json