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

> Tra ve string type name cho mot gia tri. json.null tra ve "null". Table tra ve "array" hoac "object" bang cung table classification nhu json.isArray va json.isObject. Cac gia tri khac tra ve runtime Lua type name result.

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

  ## Đối số

  <ParamField path={"value"} type={"any"} required>
    Gia tri de classify. Truyen no value tra ve runtime type name cho stack value bi thieu.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. Cac JSON-specific returns da xac minh la "null", "array" va "object". Gia tri non-table va non-json.null dung Lua type name, vi du "nil", "boolean", "number", "integer", "string", "function", "object", "thread", "buffer", "class", "object", "vector" hoac "no value", tuy runtime value.
  </ResponseField>

  ## Ví dụ

  Kiem tra exact type string ma JSON helper tra ve.

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