> ## 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 value.
  </ParamField>

  ## Возвраты

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. Проверенные JSON-specific returns: "null", "array" и "object". Значения non-table и non-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>
