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

> คืน direct values จาก table ใน table ใหม่ที่ marked as JSON array. JSON type marker entries จะถูกข้าม

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

  ## Arguments

  <ParamField path={"object"} type={"table"} required>
    Table ที่จะ enumerate. function ตรวจ argument นี้ด้วย type checking
  </ParamField>

  ## Returns

  <ResponseField name={"values"} type={"table"}>
    New array-style table ที่มี direct values จาก input table. output ถูก marked as JSON array. Enumeration ใช้ table iteration ดังนั้นไม่มี ordering guarantee ที่เห็นได้ใน function
  </ResponseField>

  ## ตัวอย่าง

  รวบรวม direct values จาก table เข้า JSON array-marked table

  ```lua theme={null}
  local list = json.array({ "one", "two" })

  for _, value in ipairs(json.values(list)) do
      print(value)
  end
  ```
</div>


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