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

> Renvoie les visible keys d'une table dans une new table marked as a JSON array.

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

  ## Arguments

  <ParamField path={"object"} type={"table"} required>
    Table a inspect. L'function exige que cet argument soit une table.
  </ParamField>

  ## Retours

  <ResponseField name={"keys"} type={"table"}>
    New array table contenant les source table keys, sauf Real JSON type marker. L'order suit table iteration iteration et n'est pas sorted par cette function.
  </ResponseField>

  ## Exemple

  Collect les visible keys d'une table dans une 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>
