json

The payload library has two json functions: JsonEncode, JsonDecode

-- Will turn this into a json string
local encoded_json = payload.JsonEncode({
    Example = "hi"
})
local decoded_json = payload.JsonDecode(encoded_json) -- Will decode the json back into a table

Last updated