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

> ترجع string type name لقيمة. json.null يرجع "null". الجداول ترجع "array" أو "object" باستخدام نفس table classification مثل json.isArray و json.isObject. القيم الأخرى ترجع runtime Lua type name result.

<div className="real-function-page">
  ```lua theme={null}
  json.type(value: any): string
  ```

  ## الوسائط

  <ParamField path={"value"} type={"any"} required>
    القيمة التي يتم classify لها. تمرير no value يرجع runtime type name لقيمة stack مفقودة.
  </ParamField>

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

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. القيم JSON-specific المثبتة هي "null" و "array" و "object". القيم غير table وغير json.null تستخدم Lua type name، مثل "nil" أو "boolean" أو "number" أو "integer" أو "string" أو "function" أو "object" أو "thread" أو "buffer" أو "class" أو "object" أو "vector" أو "no value" حسب runtime value.
  </ResponseField>

  ## مثال

  تحقق من exact type string التي يرجعها JSON helper.

  ```lua theme={null}
  print(json.type(json.array({ "red", "blue" })))
  print(json.type(json.object({ enabled = true })))
  print(json.type(json.null))
  print(json.type(nil))
  print(json.type())
  ```
</div>
