package json
Linear Supertypes
Ordering
- Grouped
- Alphabetic
- By Inheritance
Inherited
- json
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Value Members
- val JsonParser: ParserApplyWithBoundInput[JsonEvent]
- val JsonSplitter: SplitterApplyWithBoundInput[JsonEvent]
- val JsonTransformer: TransformerApplyWithBoundInput[JsonEvent]
- def anyField: JsonContextMatcher[String]
- def anyIndex: JsonContextMatcher[Int]
- def field[A](contextFromName: (String) => Option[A]): JsonContextMatcher[A]
- implicit def field(name: String): JsonContextMatcher[Unit]
- def fieldWhere(f: (String) => Boolean): JsonContextMatcher[String]
- def index[A](contextFromIndex: (Int) => Option[A]): JsonContextMatcher[A]
- def index(i: Int): JsonContextMatcher[Unit]
- def indexWhere(f: (Int) => Boolean): JsonContextMatcher[Int]
- implicit val jsonParserForPrimitiveBoolean: JsonParser[Boolean]
- implicit val jsonParserForPrimitiveDouble: JsonParser[Double]
- implicit val jsonParserForPrimitiveFloat: JsonParser[Float]
- implicit val jsonParserForPrimitiveInt: JsonParser[Int]
- implicit val jsonParserForPrimitiveLong: JsonParser[Long]
- implicit val jsonParserForPrimitiveNull: JsonParser[None.type]
- implicit val jsonParserForPrimitiveString: JsonParser[String]
- object JacksonSource
Provides helpers for creating
fs2.Stream
andIterator
instances ofJsonEvent
from various underlying event sources, using the Jackson library as the underlying event parser.Provides helpers for creating
fs2.Stream
andIterator
instances ofJsonEvent
from various underlying event sources, using the Jackson library as the underlying event parser.The helpers in this object operate in terms of the
IntoJacksonJsonParser
typeclass, which defines logic for using asource
value to construct a Jackson JsonParser in a Resource. From there, the helpers take care of converting the jackson parser/event model to the spac JsonEvent model.For example:
val file = new File("./stuff.json") val jsonStream: Stream[IO, JsonEvent] = JacksonSource[IO](file)