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.
- Source
- package.scala
- Alphabetic
- By Inheritance
- jackson
- JacksonCompat
- JacksonParser
- Parser
- Serializable
- Serializable
- WithJacksonMapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait JacksonParser extends Parser
- class WithJacksonMapper extends AnyRef
Abstract Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
parse(input: String): Either[ParsingFailure, Json]
- Definition Classes
- Parser
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
decode[A](input: String)(implicit decoder: Decoder[A]): Either[Error, A]
- Definition Classes
- Parser
-
final
def
decodeAccumulating[A](input: String)(implicit decoder: Decoder[A]): ValidatedNel[Error, A]
- Definition Classes
- Parser
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
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
jsonBytesParser(bytes: Array[Byte]): JsonParser
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
-
final
def
jsonFileParser(file: File): JsonParser
- 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
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
-
final
def
parseByteArray(bytes: Array[Byte]): Either[ParsingFailure, Json]
- Definition Classes
- JacksonParser
-
final
def
parseFile(file: File): Either[ParsingFailure, Json]
- Definition Classes
- JacksonParser
-
final
def
stringJsonGenerator(out: StringWriter): JsonGenerator
- Attributes
- protected
- Definition Classes
- WithJacksonMapper
-
def
toString(): String
- Definition Classes
- Any
- object CirceJsonModule extends SimpleModule