JSONParseException
classin packageklyn.io.json
public class JSONParseException extends 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
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public JSONParseException
JSONParseException(message as String = ""):
Creates a JSON processing exception.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml