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

> Real JSON encoder가 object로 처리하도록 new table marked as a JSON object를 생성합니다.

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

  ## 인수

  <ParamField path={"source"} type={"table"}>
    New object table로 copy할 optional source table입니다. omitted 또는 nil이면 empty object table을 반환합니다.
  </ParamField>

  ## 반환값

  <ResponseField name={"object"} type={"table"}>
    Real JSON object marker로 marked된 new table입니다. Source entries는 copy되지만 Real JSON type marker는 제외됩니다.
  </ResponseField>

  ## 예제

  Empty object를 포함해 new table marked as a JSON object를 create합니다.

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

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