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

> Returns the direct values from a table in a new JSON array table. JSON metadata entries are not included.

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

  ## Arguments

  <ParamField path={"object"} type={"table"} required>
    Table to enumerate. The function checks this argument with type checking.
  </ParamField>

  ## Returns

  <ResponseField name={"values"} type={"table"}>
    New array-style table containing the direct values from the input table. The output is marked as a JSON array. Enumeration uses table iteration, so no ordering guarantee is visible in the function.
  </ResponseField>

  ## Example

  Collect the direct values from a table into a 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>
