JsonStreamSyntax

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

Suffix syntax and convenience methods for parseJson

Source:
package.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def parseJson[J](mode: Mode)(implicit F: ApplicativeError[F, Throwable], A: Absorbable[O], facade: Facade[J]): Stream[F, J]

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

Parses a source 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[J](implicit F: ApplicativeError[F, Throwable], A: Absorbable[O], facade: Facade[J]): Stream[F, 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 runJsonOption[J](implicit F: Concurrent[F], A: Absorbable[O], facade: Facade[J]): F[Option[J]]

Parses the source to a single JSON optional JSON value.

Parses the source to a single JSON optional JSON value.

Type parameters:
J

the JSON AST to return

Value parameters:
facade

the Jawn facade to materialize J

Returns:

some parsed JSON value, or None if the source is empty

Source:
package.scala
def unwrapJsonArray[J](implicit F: ApplicativeError[F, Throwable], A: Absorbable[O], facade: Facade[J]): Stream[F, 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