JsonSplitterOps

io.dylemma.spac.json.`package`.JsonSplitterOps
final implicit class JsonSplitterOps[C](splitter: JsonSplitter[C]) extends AnyVal

Adds splitter.asNullable[A], for handling possibly-null values in a JSON substream

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def asNullable[A : JsonParser]: JsonTransformer[Option[A]]

Alternative to splitter.as[A] which also accepts null in place of the normal JSON for A.

Alternative to splitter.as[A] which also accepts null in place of the normal JSON for A.

Type parameters

A

Any type for which an implicit JsonParser[A] exists

Attributes