jackson-module-scala
jackson-module-scala copied to clipboard
Add-on module for Jackson (https://github.com/FasterXML/jackson) to support Scala-specific datatypes
Filed from discussion with @christophercurrie in #217. Here's a possible pattern (not 100% sure). I think using `@JsonProperty` without a value is causing this. I've confirmed that the issue goes...
* look for `//TODO fix` in test code * currently just 2 cases left
Passes with Scala 2. * https://github.com/FasterXML/jackson-module-scala/blob/master/src/test/scala-2.%2B/com/fasterxml/jackson/module/scala/ser/MapScala2SerializerTest.scala
There are some restrictions on Google AppEngine for using reflection. `com.fasterxml.jackson.module.scala.introspect.BeanIntrospector` uses reflection to look up for constructor parameter names. Since v2.5.0 this operation is not wrapped into try/catch. Here...
Given a `Map[K,V]`, type `K`'s `@JsonSerialize` annotation is ignored, though type `V`'s isn't. The problem doesn't happen with `Seq[V]`. Note that by `K` and `V` I mean any type at...
``` scala import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper class XX { @beans.BeanProperty var b = Map[String, Long]("1" -> 11L, "2" -> 22) } object XX { def main(args: Array[String]) {...
The jsonSchema returned for: ``` scala case class WorkingClass(int: Int) { def iterator: Iterator[Int] = List().toIterator } ``` looks correct: ``` json { "type" : "object", "id" : "urn:jsonschema:com:ccri:commons:config:schema:ReproduceIssue:WorkingClass", "properties"...
When there is a `case class` with `BeanProperty`-annotated field, the following code sometimes generates JSON with duplicate fields. For example, `pId` field gets serialized twice, as `pId` and `pid`. ```...
This test passes with Scala 2 but fails with Scala 3. * https://github.com/FasterXML/jackson-module-scala/blob/master/src/test/scala-2.%2B/com/fasterxml/jackson/module/scala/deser/EnumerationScala2DeserializerTest.scala
(as background, see https://github.com/FasterXML/jackson-databind/issues/2726) So, Jackson 2.12 is adding support for Gradle version alignment, using mechanism supported by Gradle 6. @jjohannes contributed this for other modules and hopefully can help,...