Skip to main content

Arguments

any
required
Value to classify. Passing no value returns the runtime type name for a missing stack value.

Returns

string
Type name string. Verified JSON-specific returns are “null”, “array”, and “object”. Non-table, non-json.null values use Lua type name, such as “nil”, “boolean”, “number”, “integer”, “string”, “function”, “object”, “thread”, “buffer”, “class”, “object”, “vector”, or “no value” depending on the runtime value.

Example

Check the exact type string returned by the JSON helper.