InvalidCanonicalJsonException class abstract

Exception thrown when encountering invalid input during decoding of canonical JSON.

If accepting canonical JSON from an untrusted source, it's a good idea to use the JSON decoder provided in this package to ensure that data was encoded as canonical JSON and not just JSON. Catching this exception is important for gracefully handling non-canonical JSON from untrusted sources.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
input List<int>
no setter
message String
no setter
offset int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited