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

> Tra ve visible keys cua table trong new table marked as a JSON array.

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

  ## Đối số

  <ParamField path={"object"} type={"table"} required>
    Table de inspect. Function yeu cau argument nay la table.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"keys"} type={"table"}>
    New array table chua source table keys, loai tru Real JSON type marker. Order theo table iteration iteration va khong duoc sorted boi function nay.
  </ResponseField>

  ## Ví dụ

  Collect visible keys cua table vao 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>
