jawnfs2

package jawnfs2

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
object Absorbable
Companion
class
class JsonStreamSyntax[F[_], O](stream: Stream[F, O])

Suffix syntax and convenience methods for parseJson

Suffix syntax and convenience methods for parseJson

Value members

Concrete methods

def parseJson[F[_], A, J](mode: Mode)(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 Params
J

the JSON AST to return

Value Params
facade

the Jawn facade to materialize J

mode

the async mode of the Jawn parser

def parseJsonStream[F[_], A, J](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 Params
J

the JSON AST to return

Value Params
facade

the Jawn facade to materialize J

def unwrapJsonArray[F[_], A, J](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 Params
J

the JSON AST to return

Value Params
facade

the Jawn facade to materialize J