OcelotBOT
Search…
JSON Module
Parses JSON

parse(json: string)

Converts a JSON object into a lua table.
1
local j = require('json');
2
local obj = j.parse('{"field": "value"}');
3
d.send(obj.field);
Copied!
Last modified 6mo ago
Copy link