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

> Tra ve value co duoc treated as a JSON array boi Real JSON table detection hay khong.

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

  ## Đối số

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

  ## Giá trị trả về

  <ResponseField name={"isArray"} type={"boolean"}>
    true khi value la table marked as a JSON array hoac unmarked table co contiguous positive integer keys tu 1 den maximum index. Empty unmarked tables tra ve false.
  </ResponseField>

  ## Ví dụ

  Check table co duoc treated as a JSON array boi Real JSON encoder hay khong.

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

  print(json.isArray(items))
  print(json.isArray(record))
  print(json.isArray(inferred))
  ```
</div>
