org.typelevel.jawn.fs2

Integrates the Jawn parser with fs2

Type members

Classlikes

trait Absorbable[A]

Type class that can be absorbed by a Jawn AsyncParser

Type class that can be absorbed by a Jawn AsyncParser

Companion:
object
Source:
Absorbable.scala
object Absorbable
Companion:
class
Source:
Absorbable.scala
implicit class JsonStreamSyntax[F[_], O](stream: Stream[F, O])

Suffix syntax and convenience methods for parseJson

Suffix syntax and convenience methods for parseJson

Source:
package.scala

Value members

Concrete methods

def parseJson[F[_], A, J](mode: Mode)(implicit F: ApplicativeError[F, Throwable], A: Absorbable[A], facade: Facade[J]): (F, A) => J

Parses to any Jawn-supported AST using the specified Async mode.

Parses to any Jawn-supported AST using the specified Async mode.

Type parameters:
J

the JSON AST to return

Value parameters:
facade

the Jawn facade to materialize J

mode

the async mode of the Jawn parser

Source:
package.scala
def parseJsonStream[F[_], A, J](implicit F: ApplicativeError[F, Throwable], A: Absorbable[A], facade: Facade[J]): (F, A) => J

Emits individual JSON elements as they are parsed.

Emits individual JSON elements as they are parsed.

Type parameters:
J

the JSON AST to return

Value parameters:
facade

the Jawn facade to materialize J

Source:
package.scala
def unwrapJsonArray[F[_], A, J](implicit F: ApplicativeError[F, Throwable], A: Absorbable[A], facade: Facade[J]): (F, A) => J

Emits elements of an outer JSON array as they are parsed.

Emits elements of an outer JSON array as they are parsed.

Type parameters:
J

the JSON AST to return

Value parameters:
facade

the Jawn facade to materialize J

Source:
package.scala

Implicits

Implicits

final implicit def JsonStreamSyntax[F[_], O](stream: Stream[F, O]): JsonStreamSyntax[F, O]

Suffix syntax and convenience methods for parseJson

Suffix syntax and convenience methods for parseJson

Source:
package.scala