OcelotBOT
Search
⌃K
Introduction
Custom Commands
Message Object
Discord module
HTTP Module
JSON Module
Store Module
Built-in Modules
Tutorials
Making a simple custom command
Powered By
GitBook
JSON Module
Parses JSON
parse(json: string)
Converts a JSON object into a lua table.
local
j
=
require
(
'json'
);
local
obj
=
j
.
parse
(
'{"field": "value"}'
);
d
.
send
(
obj
.
field
);
Custom Commands - Previous
HTTP Module
Next - Custom Commands
Store Module
Last modified
1yr ago