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

> คืนว่า value ถูก treated as a JSON array โดย Real JSON table detection หรือไม่.

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

  ## Arguments

  <ParamField path={"value"} type={"any"} required>
    Value ที่จะ inspect. Non-table values คืน false.
  </ParamField>

  ## Returns

  <ResponseField name={"isArray"} type={"boolean"}>
    true เมื่อ value เป็น table marked as a JSON array หรือ unmarked table ที่มี contiguous positive integer keys จาก 1 ถึง maximum index. Empty unmarked tables คืน false.
  </ResponseField>

  ## ตัวอย่าง

  Check ว่า table ถูก treated as a JSON array โดย Real JSON encoder หรือไม่.

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.