JsonReadFailures

class JsonReadFailures(mapper: JsonMapper)

Describes the failures of mapper's reads (JsonReadFailure). A number out of range, which Jackson reports with no path, is located by reading the value again, on this error path only, with readers that name the path.

Constructors

Link copied to clipboard
constructor(mapper: JsonMapper)

Properties

Link copied to clipboard
val requestReader: ObjectReader

The reader of a request's body: mapper's, refusing a property given more than once in one object, which Jackson would read as its last value (duplicateIn names it).

Functions

Link copied to clipboard

The first property json gives more than once in one object, by its path; null when it gives none, or is not JSON. The requestReader refuses one, and the reader that caught it asks this where it is.

Link copied to clipboard
fun of(json: JsonNode, type: Class<*>, failure: JacksonException): JsonReadFailure?

Why json did not read as type, given the failure of reading it; null when failure is not about a value, a JSON syntax error when it was text, say.