JSONParseException
class in package klyn.io.json

    public class JSONParseException extends SyntaxError:

Object
└ Exception
└ SyntaxError
└ JSONParseException

Exception raised when a JSON document cannot be parsed or produced.

`JSONParseException` is used by the JSON parser for malformed documents, invalid escape sequences and truncated input. Serialization also raises it when an object graph contains a cycle, because JSON cannot represent cyclic references.

Example

    import klyn.io.json

    try:
    data = JSON.parseMap("""{"name": "Klyn"""")
    catch error as JSONParseException:
    print(error.message)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | JSONParseException `JSONParseException(message as String = ""):` | Creates a JSON processing exception.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml