Packages

  • package root
    Definition Classes
    root
  • package fs2
    Definition Classes
    root
  • package data
    Definition Classes
    fs2
  • package json

    Handles stream parsing and traversing of json documents.

    Handles stream parsing and traversing of json documents.

    Definition Classes
    data
  • package ast
    Definition Classes
    json
  • Builder
  • Tokenizer
  • package circe
    Definition Classes
    json
  • package codec
    Definition Classes
    json
  • package interpolators
    Definition Classes
    json
  • package playJson
    Definition Classes
    json
  • package selector

    Contains a DSL to build a 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
    Definition Classes
    json

package ast

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ast
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Builder[Json] extends AnyRef

    An Ast builder used to create Json structures from a token stream.

  2. trait Tokenizer[Json] extends AnyRef

    Transforms a parsed json value into tokens.

    Transforms a parsed json value into tokens. This is intended to be used to generate token stream out of a value.

Value Members

  1. def tokenize[F[_], Json](implicit tokenizer: Tokenizer[Json]): Pipe[F, Json, Token]

    Transforms a stream of Json values into a stream of Json tokens.

    Transforms a stream of Json values into a stream of Json tokens.

    This operation is the opposite of values.

  2. def transform[F[_], Json](selector: Selector, f: (Json) => Json)(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]

    Transforms a stream of token into another one.

    Transforms a stream of token into another one. The transformation function f is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged.

    This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.

  3. def transformF[F[_], Json](selector: Selector, f: (Json) => F[Json])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]

    Transforms a stream of token into another one.

    Transforms a stream of token into another one. The transformation function f is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged. The operation can fail, in case the returned F is failed at one step.

    This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.

  4. def transformOpt[F[_], Json](selector: Selector, f: (Json) => Option[Json])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]

    Transforms a stream of token into another one.

    Transforms a stream of token into another one. The transformation function f is called on every selected value from upstream, and the resulting value replaces it. If the function returns None, then the entire value is dropped (and the object key it is located at, if any). The rest of the stream is left unchanged.

    This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.

  5. def transformOptF[F[_], Json](selector: Selector, f: (Json) => F[Option[Json]])(implicit F: RaiseThrowable[F], builder: Builder[Json], tokenizer: Tokenizer[Json]): Pipe[F, Token, Token]

    Transforms a stream of token into another one.

    Transforms a stream of token into another one. The transformation function f is called on every selected value from upstream, and the resulting value replaces it. The rest of the stream is left unchanged. The operation can fail, in case the returned F is failed at one step.

    This operator locally creates Json AST values using the Builder, and returns tokens as emitted by the Tokenizer on the resulting value.

  6. def values[F[_], Json](implicit F: RaiseThrowable[F], builder: Builder[Json]): Pipe[F, Token, Json]

    Transforms a stream of Json tokens into a stream of json values.

  7. object Tokenizer

Inherited from AnyRef

Inherited from Any

Ungrouped