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

> Retorna um string type name para um valor. json.null retorna "null". Tabelas retornam "array" ou "object" usando a mesma table classification de json.isArray e json.isObject. Outros valores retornam o runtime Lua type name result.

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

  ## Argumentos

  <ParamField path={"value"} type={"any"} required>
    Valor a ser classify. Passar no value retorna o runtime type name para um stack value ausente.
  </ParamField>

  ## Retornos

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. Os returns JSON-specific verificados sao "null", "array" e "object". Valores non-table e non-json.null usam Lua type name, como "nil", "boolean", "number", "integer", "string", "function", "object", "thread", "buffer", "class", "object", "vector" ou "no value", dependendo do runtime value.
  </ResponseField>

  ## Exemplo

  Verifica o exact type string retornado pelo 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>
