jackson-module-scala
jackson-module-scala copied to clipboard
Add-on module for Jackson (https://github.com/FasterXML/jackson) to support Scala-specific datatypes
I can deserialize just about anything into an `Option`: ``` scala case class Foo(integer: Option[Int]) object OptionFail { val mapper = new ObjectMapper() with ScalaObjectMapper mapper.registerModule(DefaultScalaModule) def main(args: Array[String]) {...
Are Maps with keys that are simple case classes (of one primitive field) supported? ``` scala import com.fasterxml.jackson.databind._ import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper val mapper = (new ObjectMapper() with ScalaObjectMapper). registerModule(DefaultScalaModule)....
Does this module support using @JsonFilter within a Scala class to filter out attributes? When I add it to a getter on my Scala class, the resulting object in the...
Sample code snippet ``` scala class Foo(val f:Int){ @JsonManagedReference val children: Seq[Bar] = null } class Bar(val b: Int) { @JsonBackReference val parent: Foo = null } ``` REPL: ```...
Hi, I'm trying to write a custom serializer for an Nd4j array (see http://nd4j.org). I was about to get it working with json but when I try yaml output I...
For performance and other reasons, `BeanIntrospector` should start using `Annotated` and friends, as mentioned in #120.
As discussed in #77, it would be helpful if there were a way to ignore all the implemented fields and methods of a trait used by a class.
As discovered looking at #121, core Jackson supported deserializing derived classes of concrete collections. This is useful, for example, as a workaround for systems that do not provide Jackson with...
objects and case objects not serialized properly on Scala 2.13/3 when getter visibilty is disabled
This issue is very similar to this: https://github.com/FasterXML/jackson-module-scala/issues/429 Serialization is incorrect when using Scala 2.13 to serialize objects and case objects _that do not belong to the same class as...
Both 2.17.0 and 2.17.0-rc1 are affected when small messages (less than 100 bytes) are parsed or serialized in multiple threads using the same object mapper instance. The problem exists when...