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.
- Alphabetic
- By Inheritance
- jackson
- JacksonCompat
- JacksonParser
- Parser
- Serializable
- WithJacksonMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- trait JacksonParser extends Parser
- class WithJacksonMapper extends AnyRef
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- final def decode[A](input: String)(implicit arg0: Decoder[A]): Either[Error, A]
- Definition Classes
- Parser
- final def decodeAccumulating[A](input: String)(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
- Definition Classes
- Parser
- final def decodeByteArray[A](bytes: Array[Byte])(implicit arg0: Decoder[A]): Either[Error, A]
- Definition Classes
- JacksonParser
- final def decodeByteArrayAccumulating[A](bytes: Array[Byte])(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
- Definition Classes
- JacksonParser
- final def decodeFile[A](file: File)(implicit arg0: Decoder[A]): Either[Error, A]
- Definition Classes
- JacksonParser
- final def decodeFileAccumulating[A](file: File)(implicit arg0: Decoder[A]): ValidatedNel[Error, A]
- Definition Classes
- JacksonParser
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- final def finishDecode[A](input: Either[ParsingFailure, Json])(implicit decoder: Decoder[A]): Either[Error, A]
- Attributes
- protected[this]
- Definition Classes
- Parser
- final def finishDecodeAccumulating[A](input: Either[ParsingFailure, Json])(implicit decoder: Decoder[A]): ValidatedNel[Error, A]
- Attributes
- protected[this]
- Definition Classes
- Parser
- def handleUnexpectedToken(context: DeserializationContext)(klass: Class[_], parser: JsonParser): Unit
- Attributes
- protected
- Definition Classes
- JacksonCompat
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def jacksonPrint(json: Json): String
- final def jacksonPrintByteBuffer(json: Json): ByteBuffer
- 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
- final def jsonBytesParser(bytes: Array[Byte]): JsonParser
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
- final def jsonFileParser(file: File): JsonParser
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
- final def jsonGenerator(out: Writer): JsonGenerator
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
- final def jsonStringParser(input: String): JsonParser
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
- def makeWriter(mapper: ObjectMapper): ObjectWriter
- Attributes
- protected
- Definition Classes
- JacksonCompat
- final val mapper: ObjectMapper
- Definition Classes
- WithJacksonMapper
- def objectNodeSetAll(node: ObjectNode, fields: Map[String, JsonNode]): JsonNode
- Attributes
- protected
- Definition Classes
- JacksonCompat
- final def parseByteArray(bytes: Array[Byte]): Either[ParsingFailure, Json]
- Definition Classes
- JacksonParser
- final def parseFile(file: File): Either[ParsingFailure, Json]
- Definition Classes
- JacksonParser
- def toString(): String
- Definition Classes
- Any
- object CirceJsonModule extends SimpleModule