mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-30 03:09:20 +02:00
5 lines
244 B
Lua
5 lines
244 B
Lua
local context = G.botContext
|
|
|
|
context.encode = function(data) return json.encode(data) end
|
|
context.decode = function(text) local status, result = pcall(function() return json.decode(text) end) if status then return result end return {} end
|