> ## 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" を返します。table は json.isArray と json.isObject と同じ table classification を使って "array" または "object" を返します。その他の値は 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 を渡すと、欠けている stack value の runtime type name を返します。
  </ParamField>

  ## 戻り値

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string です。検証済みの JSON-specific returns は "null"、"array"、"object" です。non-table かつ non-json.null の値は Lua type name を使い、runtime value に応じて "nil"、"boolean"、"number"、"integer"、"string"、"function"、"object"、"thread"、"buffer"、"class"、"object"、"vector"、"no value" などになります。
  </ResponseField>

  ## 例

  JSON helper が返す exact type string を確認します。

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