- Companion
- object
Value members
Inherited methods
Create a new decoder that attempts to navigate to the specified field before decoding.
Create a new decoder that attempts to navigate to the specified field before decoding.
- Inherited from
- Decoder
Choose the first succeeding decoder, wrapping the result in a disjunction.
Choose the first succeeding decoder, wrapping the result in a disjunction.
- Inherited from
- Decoder
Create a new decoder that performs some operation on the result if this one succeeds.
Create a new decoder that performs some operation on the result if this one succeeds.
- Value Params
- f
a function returning either a value or an error message
- Inherited from
- Decoder
Create a new decoder that performs some operation on the result if this one succeeds.
Create a new decoder that performs some operation on the result if this one succeeds.
- Value Params
- f
a function returning either a value or an error message
- Inherited from
- Decoder
Build a new instance that fails with one or more errors if the condition does not hold for the result.
Build a new instance that fails with one or more errors if the condition does not hold for the result.
If the result of the function applied to the decoded value is the empty list, the new decoder will succeed with that value.
- Inherited from
- Decoder
Build a new instance that fails if the condition does not hold for the result.
Build a new instance that fails if the condition does not hold for the result.
Note that in the case of chained calls to this method, only the first failure will be returned.
- Inherited from
- Decoder
Monadically bind a function over this Decoder.
Monadically bind a function over this Decoder.
- Inherited from
- Decoder
Create a new instance that handles any of this instance's errors with the given function.
Create a new instance that handles any of this instance's errors with the given function.
Note that in the case of accumulating decoding, only the first error will be used in recovery.
- Inherited from
- Decoder
Choose the first succeeding decoder.
Choose the first succeeding decoder.
- Inherited from
- Decoder
Create a new decoder that performs some operation on the incoming JSON before decoding.
Create a new decoder that performs some operation on the incoming JSON before decoding.
- Inherited from
- Decoder
Run two decoders and return their results as a pair.
Run two decoders and return their results as a pair.
- Inherited from
- Decoder
Decode the given ACursor.
Decode the given ACursor.
Note that if you override the default implementation, you should also be
sure to override tryDecodeAccumulating
in order for fail-fast and
accumulating decoding to be consistent.
- Inherited from
- Decoder
Build a new instance that fails if the condition does not hold for the input.
Build a new instance that fails if the condition does not hold for the input.
- Inherited from
- Decoder
Build a new instance that fails if the condition does not hold for the input.
Build a new instance that fails if the condition does not hold for the input.
- Inherited from
- Decoder