fs2.data.json.ast

Members list

Concise view

Type members

Classlikes

trait Builder[Json]

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

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

Attributes

Source:
Builder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
trait Tokenizer[Json]

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

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

Attributes

Companion:
object
Source:
Tokenizer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NELTokenizer.type
object Tokenizer

Attributes

Companion:
trait
Source:
Tokenizer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def tokenize[F[_], Json](implicit tokenizer: Tokenizer[Json]): (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.

Attributes

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

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.

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.

Attributes

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

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.

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.

Attributes

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

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.

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.

Attributes

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

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.

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.

Attributes

Source:
package.scala
def values[F[_], Json](implicit F: RaiseThrowable[F], builder: Builder[Json]): (F, Token) => Json

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

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

Attributes

Source:
package.scala