JacksonSupport

Provides implicits that allow various data sources to be passed to a JsonParser's parse method, using the Jackson library's classes as the underlying JSON event generator.

Provides implicits that allow various data sources to be passed to a JsonParser's parse method, using the Jackson library's classes as the underlying JSON event generator.

By default, a Parsable instance is made available for the following types:

  • `String``
  • `java.io.File``
  • Resource[F, java.io.InputStream] (where F belongs to Sync)
  • Resource[F, java.io.Reader] (where F belongs to Sync)

A rough outline of the implicit derivation is:

   Source => Resource[F, JacksonJsonParser] => Stream[F, JsonEvent] => Parsable[Source]
class Object
trait Matchable
class Any

Implicits

Implicits

implicit def jacksonParsableAsParsable[S](S: IntoJacksonJsonParser[[A] =>> SyncIO[A], S], factory: JsonFactory): Parsable[Id, S, JsonEvent]

Provides a Parsable for applicable source types in the cats.Id context (using cats.effect.SyncIO under the hood). This allows those source types to be passed to a JsonParser's parse method, running the parser handler immediately.

Provides a Parsable for applicable source types in the cats.Id context (using cats.effect.SyncIO under the hood). This allows those source types to be passed to a JsonParser's parse method, running the parser handler immediately.

implicit def jacksonParsableAsParsableF[F[_], S](F: Sync[F], S: IntoJacksonJsonParser[F, S], factory: JsonFactory, chunkSize: ChunkSize): Parsable[F, S, JsonEvent]

Provides a Parsable for applicable source types in any effect F that belongs to the cats.effect.Sync typeclass. This allows those source types to be passed to a JsonParser's parseF method, running the parser handler in the F context.

Provides a Parsable for applicable source types in any effect F that belongs to the cats.effect.Sync typeclass. This allows those source types to be passed to a JsonParser's parseF method, running the parser handler in the F context.