JSON
json.object
Создает new table marked as a JSON object, чтобы Real JSON encoder обрабатывал ее как object.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Создает new table marked as a JSON object, чтобы Real JSON encoder обрабатывал ее как object.
json.object(source?: table): table
local profile = json.object({
name = "Guest",
active = true,
})
local empty = json.object()
print(json.encode(profile))
print(json.encode(empty))