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

> table の direct values を、新しい JSON array として marked された table で返します。JSON type marker entries はスキップされます。

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

  ## 引数

  <ParamField path={"object"} type={"table"} required>
    enumerate する table。function はこの argument を type checking で確認します。
  </ParamField>

  ## 戻り値

  <ResponseField name={"values"} type={"table"}>
    input table の direct values を含む new array-style table。output は JSON array として marked されます。Enumeration は table iteration を使うため、function から ordering guarantee は見えません。
  </ResponseField>

  ## 例

  table の direct values を 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>
