Attributes
- Companion
- object
- Source
- ConfiguredCodec.scala
- Graph
-
- Supertypes
-
trait ConfiguredEncoder[A]trait ConfiguredDecoder[A]trait AsObject[A]trait AsObject[A]trait AsRoot[A]trait AsRoot[A]trait Codec[A]trait Encoder[A]trait Decoder[A]trait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Convert a value to JSON.
Decode the given HCursor.
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Create a new Encoder by applying a function to a value of type B
before encoding as an A
.
Create a new Encoder by applying a function to a value of type B
before encoding as an A
.
Attributes
- Inherited from:
- Encoder
- Source
- Encoder.scala
Create a new Encoder.AsObject by applying a function to a value of type B
before encoding as an A
.
Create a new Encoder.AsObject by applying a function to a value of type B
before encoding as an A
.
Attributes
- Inherited from:
- AsObject
- Source
- Encoder.scala
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Decode the given Json value.
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Choose the first succeeding decoder, wrapping the result in a disjunction.
Choose the first succeeding decoder, wrapping the result in a disjunction.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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 parameters
- f
-
a function returning either a value or an error message
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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 parameters
- f
-
a function returning either a value or an error message
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Attributes
- Inherited from:
- ConfiguredEncoder
- Source
- ConfiguredEncoder.scala
Convert a value to a JSON object.
Attributes
- Inherited from:
- ConfiguredEncoder
- Source
- ConfiguredEncoder.scala
Attributes
- Inherited from:
- ConfiguredEncoder
- Source
- ConfiguredEncoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Monadically bind a function over this Decoder.
Monadically bind a function over this Decoder.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Variant of imap
which allows the Decoder to fail with message string.
Variant of imap
which allows the Decoder to fail with message string.
Type parameters
- B
-
the type of the new Codec
Value parameters
- f
-
decode value or fail
- g
-
encode value
Attributes
- Returns
-
a codec for B
- Inherited from:
- Codec
- Source
- Codec.scala
Variant of imap
which allows the Decoder to fail with Throwable.
Variant of imap
which allows the Decoder to fail with Throwable.
Type parameters
- B
-
the type of the new Codec
Value parameters
- f
-
decode value or fail
- g
-
encode value
Attributes
- Returns
-
a codec for B
- Inherited from:
- Codec
- Source
- Codec.scala
Convert to a Kleisli arrow.
Map a function over this Decoder.
Create a new Encoder by applying a function to the output of this one.
Create a new Encoder by applying a function to the output of this one.
Attributes
- Inherited from:
- Encoder
- Source
- Encoder.scala
Create a new Encoder.AsObject by applying a function to the output of this one.
Create a new Encoder.AsObject by applying a function to the output of this one.
Attributes
- Inherited from:
- AsObject
- Source
- Encoder.scala
Choose the first succeeding 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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Run two decoders and return their results as a pair.
Run two decoders and return their results as a pair.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
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.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Build a new instance with the specified error message.
Build a new instance with the specified error message.
Attributes
- Inherited from:
- Decoder
- Source
- Decoder.scala
Inherited fields
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala
Attributes
- Inherited from:
- ConfiguredEncoder
- Source
- ConfiguredEncoder.scala
Attributes
- Inherited from:
- ConfiguredEncoder
- Source
- ConfiguredEncoder.scala
Attributes
- Inherited from:
- ConfiguredDecoder
- Source
- ConfiguredDecoder.scala