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