JSONParseException
classin packageklyn.io.json
public class JSONParseException extends SyntaxError:
└ JSONParseException

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.

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 parsing exception.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml