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

> Retorna as visible keys de uma table em uma new table marked as a JSON array.

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

  ## Argumentos

  <ParamField path={"object"} type={"table"} required>
    Table para inspect. A function exige que este argument seja uma table.
  </ParamField>

  ## Retornos

  <ResponseField name={"keys"} type={"table"}>
    New array table contendo as source table keys, excluindo Real JSON type marker. A order segue table iteration iteration e nao e sorted por esta function.
  </ResponseField>

  ## Exemplo

  Collect as visible keys de uma table em uma 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>
