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

> Mengembalikan string type name untuk sebuah nilai. json.null mengembalikan "null". Table mengembalikan "array" atau "object" memakai table classification yang sama seperti json.isArray dan json.isObject. Nilai lain mengembalikan runtime Lua type name result.

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

  ## Argumen

  <ParamField path={"value"} type={"any"} required>
    Nilai yang akan di-classify. Mengirim no value mengembalikan runtime type name untuk stack value yang hilang.
  </ParamField>

  ## Return

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. Return JSON-specific yang terverifikasi adalah "null", "array", dan "object". Nilai non-table dan non-json.null memakai Lua type name, seperti "nil", "boolean", "number", "integer", "string", "function", "object", "thread", "buffer", "class", "object", "vector", atau "no value", tergantung runtime value.
  </ResponseField>

  ## Contoh

  Periksa exact type string yang dikembalikan 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>
