Argumenty
table
Optional source table do copy do new object table. Jesli omitted albo nil, zwracana jest empty object table.
Zwroty
table
New table marked przez Real JSON object marker. Source entries sa copy, poza 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.
Tworzy new table marked as a JSON object, aby Real JSON encoder traktowal ja jako 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))