> ## 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

> Membuat new table marked as a JSON object agar Real JSON encoder memperlakukannya sebagai object.

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

  ## Argumen

  <ParamField path={"source"} type={"table"}>
    Optional source table untuk di-copy ke new object table. Jika omitted atau nil, empty object table dikembalikan.
  </ParamField>

  ## Return

  <ResponseField name={"object"} type={"table"}>
    New table marked dengan Real JSON object marker. Source entries di-copy, kecuali Real JSON type marker.
  </ResponseField>

  ## Contoh

  Create new table marked as a JSON object, termasuk 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>
