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

> 返回 value 是否会被 Real JSON table detection treated as a JSON object。

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

  ## 参数

  <ParamField path={"value"} type={"any"} required>
    要 inspect 的 value。Non-table values 返回 false。
  </ParamField>

  ## 返回值

  <ResponseField name={"isObject"} type={"boolean"}>
    当 value 是 table marked as a JSON object，或 Real JSON table detection 没有把 table 分类为 array 时返回 true。Empty unmarked tables 返回 true。
  </ResponseField>

  ## 示例

  Check table 是否会被 Real JSON encoder treated as a JSON object。

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