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

> Mengembalikan visible keys dari table dalam new table marked as a JSON array.

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

  ## Argumen

  <ParamField path={"object"} type={"table"} required>
    Table yang di-inspect. Function mewajibkan argument ini berupa table.
  </ParamField>

  ## Return

  <ResponseField name={"keys"} type={"table"}>
    New array table berisi source table keys, kecuali Real JSON type marker. Order mengikuti table iteration iteration dan tidak sorted oleh function ini.
  </ResponseField>

  ## Contoh

  Collect visible keys dari table ke 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>
