OcelotBOT
  • Introduction
  • Custom Commands
    • Message Object
    • Discord module
      • Command Settings
    • HTTP Module
    • JSON Module
    • Store Module
    • Built-in Modules
  • Tutorials
    • Making a simple custom command
Powered by GitBook
On this page

Was this helpful?

  1. Custom Commands

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);

PreviousHTTP ModuleNextStore Module

Last updated 4 years ago

Was this helpful?