jackson-datatypes-collections
jackson-datatypes-collections copied to clipboard
Jackson project that contains various collection-oriented datatype libraries: Eclipse Collections, Guava, HPPC, PCollections
`ContainerSerializer` (a class in `jackson-databind`) includes some non-trivial machinery which may change in any version of Jackson. `PrimitiveRefMapSerializer` and `RefPrimitiveMapSerializer` (in `primitive_collections_base`) duplicate some parts of that logic (and I'm...
It would be nice if there was a shared utility to test the dark corners of ser/deser implementation for proper collection types (i. e. extending either `Collection` or `Map`): -...
The following call of Map.contains on a map with `String` keys with an `Object` argument: https://github.com/FasterXML/jackson-datatypes-collections/blob/c374783ff962041d003125cbd7b617bab5d16bff/eclipse-collections/src/main/java/com/fasterxml/jackson/datatype/eclipsecollections/ser/map/RefRefMapSerializer.java#L225 Probably the key should be serialized before checking if it should be ignored.
(note: moved from https://github.com/FasterXML/jackson-datatype-guava/issues/11) The Guava [`Table`](http://docs.guava-libraries.googlecode.com/git-history/v13.0/javadoc/com/google/common/collect/Table.html) data structure is a convenience wrapper around a `Map`. This form can be easily serialized and deserialized. Here's the basic code I'm using...
see https://github.com/FasterXML/jackson-datatypes-collections/pull/147 ``` com.fasterxml.jackson.databind.exc.MismatchedInputException: Guava `Collection` of type `com.google.common.collect.ImmutableSortedMultiset` does not accept `null` values at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 2] at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767) at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541) at...
(note: pre-req for #157) Although "default" Guava dependency has been increased to 25.x for Jackson 2.16 and later, the minimum supported version is still 20.x. But time may have come...
Add serde support for ImmutableIntArray and ImmutableDoubleArray. Note that for simplicity, the deserializers currently delegate to the implementations in PrimitiveArrayDeserializers, passing the deserialize primitive arrays to the respective `copyOf` factory...