> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# json.object

> Tworzy new table marked as a JSON object, aby Real JSON encoder traktowal ja jako object.

<div className="real-function-page">
  ```lua theme={null}
  json.object(source?: table): table
  ```

  ## Argumenty

  <ParamField path={"source"} type={"table"}>
    Optional source table do copy do new object table. Jesli omitted albo nil, zwracana jest empty object table.
  </ParamField>

  ## Zwroty

  <ResponseField name={"object"} type={"table"}>
    New table marked przez Real JSON object marker. Source entries sa copy, poza Real JSON type marker.
  </ResponseField>

  ## Przykład

  Create new table marked as a JSON object, wlacznie z empty object.

  ```lua theme={null}
  local profile = json.object({
      name = "Guest",
      active = true,
  })
  local empty = json.object()

  print(json.encode(profile))
  print(json.encode(empty))
  ```
</div>
