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

> يرجع visible keys من table في 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>
    Table التي يتم inspect لها. Function تتطلب ان يكون هذا argument من نوع table.
  </ParamField>

  ## القيم الراجعة

  <ResponseField name={"keys"} type={"table"}>
    New array table تحتوي source table keys، مع استثناء Real JSON type marker. Order يتبع table iteration iteration وليس sorted بواسطة هذه function.
  </ResponseField>

  ## مثال

  Collect visible keys من table داخل 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>
