Packages

  • package root
    Definition Classes
    root
  • package io
    Definition Classes
    root
  • package circe
    Definition Classes
    io
  • package jackson

    Support for Jackson-powered parsing and printing for circe.

    Support for Jackson-powered parsing and printing for circe.

    Note that not all guarantees that hold for Jawn-based parsing and the default printer will hold for the Jackson-based versions. Jackson's handling of numbers in particular differs significantly: it doesn't distinguish positive and negative zeros, it may truncate large JSON numbers or simply fail to parse them, it may print large numbers as strings, etc.

    The implementation is ported with minimal changes from Play JSON.

    Definition Classes
    circe
  • package syntax

    This package provides syntax for Jackson printing via enrichment classes.

  • CirceJsonModule
  • JacksonParser
  • WithJacksonMapper
p

io.circe

jackson

package jackson

Support for Jackson-powered parsing and printing for circe.

Note that not all guarantees that hold for Jawn-based parsing and the default printer will hold for the Jackson-based versions. Jackson's handling of numbers in particular differs significantly: it doesn't distinguish positive and negative zeros, it may truncate large JSON numbers or simply fail to parse them, it may print large numbers as strings, etc.

The implementation is ported with minimal changes from Play JSON.

Linear Supertypes
JacksonCompat, JacksonParser, Parser, Serializable, WithJacksonMapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. jackson
  2. JacksonCompat
  3. JacksonParser
  4. Parser
  5. Serializable
  6. WithJacksonMapper
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package syntax

    This package provides syntax for Jackson printing via enrichment classes.

Type Members

  1. trait JacksonParser extends Parser
  2. class WithJacksonMapper extends AnyRef

Abstract Value Members

  1. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  2. abstract def parse(input: String): Either[ParsingFailure, Json]
    Definition Classes
    Parser

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def circeToJackson(json: Json): JsonNode

    Converts given circe's Json instance to Jackson's JsonNode Numbers with exponents exceeding Integer.MAX_VALUE are converted to strings Warning: This implementation is not stack safe and will fail on very deep structures

    Converts given circe's Json instance to Jackson's JsonNode Numbers with exponents exceeding Integer.MAX_VALUE are converted to strings Warning: This implementation is not stack safe and will fail on very deep structures

    json

    instance of circe's Json

    returns

    converted JsonNode

  6. final def decode[A](input: String)(implicit arg0: Decoder[A]): Either[Error, A]
    Definition Classes
    Parser
  7. final def decodeAccumulating[A](input: String)(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
    Definition Classes
    Parser
  8. final def decodeByteArray[A](bytes: Array[Byte])(implicit arg0: Decoder[A]): Either[Error, A]
    Definition Classes
    JacksonParser
  9. final def decodeByteArrayAccumulating[A](bytes: Array[Byte])(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
    Definition Classes
    JacksonParser
  10. final def decodeFile[A](file: File)(implicit arg0: Decoder[A]): Either[Error, A]
    Definition Classes
    JacksonParser
  11. final def decodeFileAccumulating[A](file: File)(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
    Definition Classes
    JacksonParser
  12. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  13. final def finishDecode[A](input: Either[ParsingFailure, Json])(implicit decoder: Decoder[A]): Either[Error, A]
    Attributes
    protected[this]
    Definition Classes
    Parser
  14. final def finishDecodeAccumulating[A](input: Either[ParsingFailure, Json])(implicit decoder: Decoder[A]): ValidatedNel[Error, A]
    Attributes
    protected[this]
    Definition Classes
    Parser
  15. def handleUnexpectedToken(context: DeserializationContext)(klass: Class[_], parser: JsonParser): Unit
    Attributes
    protected
    Definition Classes
    JacksonCompat
  16. def hashCode(): Int
    Definition Classes
    Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def jacksonPrint(json: Json): String
  19. final def jacksonPrintByteBuffer(json: Json): ByteBuffer
  20. final def jacksonToCirce(node: JsonNode): Json

    Converts given Jackson's JsonNode to circe's Json This implementation tries to keep the original numbers formatting Warning: This implementation is not stack safe and will fail on very deep structures

    Converts given Jackson's JsonNode to circe's Json This implementation tries to keep the original numbers formatting Warning: This implementation is not stack safe and will fail on very deep structures

    node

    instance of Jackson's JsonNode

    returns

    converted Json instance

  21. final def jsonBytesParser(bytes: Array[Byte]): JsonParser
    Attributes
    protected
    Definition Classes
    WithJacksonMapper
  22. final def jsonFileParser(file: File): JsonParser
    Attributes
    protected
    Definition Classes
    WithJacksonMapper
  23. final def jsonGenerator(out: Writer): JsonGenerator
    Attributes
    protected
    Definition Classes
    WithJacksonMapper
  24. final def jsonStringParser(input: String): JsonParser
    Attributes
    protected
    Definition Classes
    WithJacksonMapper
  25. def makeWriter(mapper: ObjectMapper): ObjectWriter
    Attributes
    protected
    Definition Classes
    JacksonCompat
  26. final val mapper: ObjectMapper
    Definition Classes
    WithJacksonMapper
  27. def objectNodeSetAll(node: ObjectNode, fields: Map[String, JsonNode]): JsonNode
    Attributes
    protected
    Definition Classes
    JacksonCompat
  28. final def parseByteArray(bytes: Array[Byte]): Either[ParsingFailure, Json]
    Definition Classes
    JacksonParser
  29. final def parseFile(file: File): Either[ParsingFailure, Json]
    Definition Classes
    JacksonParser
  30. def toString(): String
    Definition Classes
    Any
  31. object CirceJsonModule extends SimpleModule

Inherited from JacksonCompat

Inherited from JacksonParser

Inherited from Parser

Inherited from Serializable

Inherited from WithJacksonMapper

Inherited from AnyRef

Inherited from Any

Ungrouped