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

> Table の visible keys を 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>
    Inspect する table。function はこの argument が table であることを要求します。
  </ParamField>

  ## 戻り値

  <ResponseField name={"keys"} type={"table"}>
    Source table keys を含む new array table。Real JSON type marker は除外されます。Order は table iteration iteration に従い、この function では sorted されません。
  </ResponseField>

  ## 例

  Table の visible keys を new JSON array table に collect します。

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

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