Argumentos
table
Optional source table para copy na new object table. Se omitted ou nil, retorna uma empty object table.
Retornos
table
New table marked com Real JSON object marker. Source entries sao copy, exceto Real JSON type marker.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cria uma new table marked as a JSON object para que Real JSON encoder a trate como 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))