fs2.data.json.selector

Contains a DSL to build a json selector. Start a selector with root and then chain the rest.

val sel = root.index(10).?.fields("a", "b").compile

Type members

Classlikes

case class IndicesBuilder[S](predicate: IndexPredicate, strict: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[NotApplicable, S]
Companion:
object
Companion:
class
case class IteratorBuilder[S](strict: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[NotApplicable, S]
Companion:
object
Companion:
class
class Lenient

Marker class to notify that a selector '''doesn't''' require the type of the element it is applied to to be the expected one (array or object)

Marker class to notify that a selector '''doesn't''' require the type of the element it is applied to to be the expected one (array or object)

sealed trait Lenientable[In, M]
Companion:
object
Companion:
class
sealed trait Mandatoriable[In, S]
Companion:
object
Companion:
class
class Mandatory

Marker class to notify that a selector requires the elements it selects to be present.

Marker class to notify that a selector requires the elements it selects to be present.

case class NamesBuilder[M, S](predicate: NamePredicate, strict: Boolean, mandatory: Boolean, parent: SelectorBuilder[_, _]) extends SelectorBuilder[M, S]
Companion:
object
Companion:
class

Marker class to notify that a given selector builder capability is not applicable for this case.

Marker class to notify that a given selector builder capability is not applicable for this case.

class Optional

Marker class to notify that a selector '''doesn't''' require the elements it selects to be present.

Marker class to notify that a selector '''doesn't''' require the elements it selects to be present.

sealed abstract class SelectorBuilder[M, S]

Selector builder exposes a DSL to build selectors in a type safe manner.

Selector builder exposes a DSL to build selectors in a type safe manner.

Companion:
object
Companion:
class
class Strict

Marker class to notify that a selector requires the type of the element it is applied to to be the expected one (array or object)

Marker class to notify that a selector requires the type of the element it is applied to to be the expected one (array or object)

Value members

Concrete methods

def root: RootBuilder.type

The root selector builder, selects the root of the stream, i.e. all tokens. This is the entry point for the selector DSL.

The root selector builder, selects the root of the stream, i.e. all tokens. This is the entry point for the selector DSL.