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

> Returns whether a value is treated as a JSON object by Real's JSON table detection.

<div className="real-function-page">
  ```lua theme={null}
  json.isObject(value: any): boolean
  ```

  ## Arguments

  <ParamField path={"value"} type={"any"} required>
    Value to inspect. Non-table values return false.
  </ParamField>

  ## Returns

  <ResponseField name={"isObject"} type={"boolean"}>
    true when the value is a table marked as a JSON object or when Real's JSON table detection does not classify the table as an array. Empty unmarked tables return true.
  </ResponseField>

  ## Example

  Check whether a table is treated as a JSON object by Real's JSON encoder.

  ```lua theme={null}
  local record = json.object({ name = "Real" })
  local items = json.array({ "one", "two" })
  local empty = {}

  print(json.isObject(record))
  print(json.isObject(items))
  print(json.isObject(empty))
  ```
</div>
