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

> Возвращает visible keys из table в new table marked as a JSON array.

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

  ## Аргументы

  <ParamField path={"object"} type={"table"} required>
    Table для inspect. Function требует, чтобы этот argument был table.
  </ParamField>

  ## Возвраты

  <ResponseField name={"keys"} type={"table"}>
    New array table с source table keys, кроме Real JSON type marker. Order следует table iteration iteration и не sorted этой function.
  </ResponseField>

  ## Пример

  Collect visible keys из table в new JSON array table.

  ```lua theme={null}
  local record = {
      name = "Real",
      enabled = true,
      [5] = "numeric key",
  }

  for _, key in ipairs(json.keys(record)) do
      print(key)
  end
  ```
</div>
