Syntax
isvalidlevel(level: integer): booleanAliases
validleveldebug.isvalidleveldebug.validlevelArguments
| Name | Type | Description |
|---|---|---|
level | integer | One-based stack level to inspect or update. |
Returns
| Name | Type | Description |
|---|---|---|
valid | boolean | True when the JSON string is valid. |
Description
Checks whether a stack level can be inspected safely.
Call it with 1 parameter(s): level. The argument table explains which values are required and which ones only refine the behavior.
It returns valid (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = isvalidlevel(1)
print(result)