kotlinx-serialization / kotlinx.serialization.json / JsonException

JsonException

(common, js, jvm, native) open class JsonException : SerializationException

Generic exception indicating a problem with JSON serialization and deserialization.

Constructors

(common, js, jvm, native)

<init>

Generic exception indicating a problem with JSON serialization and deserialization.

<init>(message: String)

Inheritors

(common, js, jvm, native)

JsonDecodingException

Thrown when Json has failed to parse the given JSON string or deserialize it to a target class.

class JsonDecodingException : JsonException
(common, js, jvm, native)

JsonEncodingException

Thrown when Json has failed to create a JSON string from the given value.

class JsonEncodingException : JsonException