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

> Zwraca string type name dla wartosci. json.null zwraca "null". Tabele zwracaja "array" albo "object" przy uzyciu tej samej table classification co json.isArray i json.isObject. Inne wartosci zwracaja runtime Lua type name result.

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

  ## Argumenty

  <ParamField path={"value"} type={"any"} required>
    Wartosc do classify. Przekazanie no value zwraca runtime type name dla brakujacej stack value.
  </ParamField>

  ## Zwroty

  <ResponseField name={"jsonType"} type={"string"}>
    Type name string. Zweryfikowane JSON-specific returns to "null", "array" i "object". Wartosci non-table i non-json.null uzywaja Lua type name, na przyklad "nil", "boolean", "number", "integer", "string", "function", "object", "thread", "buffer", "class", "object", "vector" albo "no value", zalezne od runtime value.
  </ResponseField>

  ## Przykład

  Sprawdza exact type string zwracany przez 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>
