JSONParseResult
Category: Core
Data class wrapper for decoded JSON.
- error
The error type if JSON source was not successfully parsed. See @GlobalScope ERR_* constants.
The line number where the error occurred if JSON source was not successfully parsed.
- error_string
- Variant result
A containing the parsed JSON. Use typeof() to check if it is what you expect. For example, if JSON source starts with curly braces () a Dictionary will be returned, if JSON source starts with braces () an will be returned.
Be aware that the JSON specification does not define integer or float types, but only a number type. Therefore, parsing a JSON text will convert all numerical values to float types.