Attempts to decode a value of type A
from the specified JsonReader
, but may fail with JsonReaderException
error if the JSON input does not encode a value of this type.
Attempts to decode a value of type A
from the specified JsonReader
, but may fail with JsonReaderException
error if the JSON input does not encode a value of this type.
an instance of JsonReader
which provide an access to the JSON input to parse a JSON value to value of
type A
the placeholder value provided to initialize some possible local variables
Encodes the specified value using provided JsonWriter
, but may fail with JsonWriterException
if it cannot be
encoded properly according to RFC-8259 requirements.
Encodes the specified value using provided JsonWriter
, but may fail with JsonWriterException
if it cannot be
encoded properly according to RFC-8259 requirements.
the value provided for serialization
an instance of JsonWriter
which provides access to JSON output to serialize the specified value as
a JSON value
Returns some placeholder value that will be used by the high level code that generates codec instances to
initialize local variables for parsed field values which have a codec that was injected using implicit val
.
Returns some placeholder value that will be used by the high level code that generates codec instances to
initialize local variables for parsed field values which have a codec that was injected using implicit val
.
See the jsoniter-scala-macros
sub-project code and its tests for usages of .nullValue
calls.
A
JsonValueCodec[A]
instance has the ability to decode and encode JSON values to/from values of typeA
, potentially failing with an error if the JSON content does not encode a value of the given type orA
cannot be encoded properly according to RFC-8259 requirements.