public class JSONParseException extends SyntaxError:
Exception raised when a JSON document cannot be parsed.
JSONParseException is used by the JSON parser for malformed documents, invalid escape sequences and truncated input. Serialization failures are reported separately through JSONWriteException.
import klyn.io.json
try:
data = JSON.parseMap("""{"name": "Klyn"""")
catch error as JSONParseException:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | JSONParseExceptionJSONParseException(message as String = ""): |
Creates a JSON parsing exception. |