FasterXML / FasterXML/jackson-datatypes-collections

Better multiset serialization / deserialization

Ouverte
#2 3 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
good first issue guava pr-welcome
Langage dominant
Java
Étoiles
90
Forks
56
Merge moyen
2 h 30 min
PR mergées (30 j)
1

Description

(moved from https://github.com/FasterXML/jackson-datatype-guava/issues/51 by @devinrsmith)

Currently, multisets' serialization size is proportional to Multiset.size() as opposed to Multiset.entrySet().size().

For example, if I have do Multiset.setCount("my_key", 1000), "my_key" is repeated 1000 times in the output. It would be much more appropriate if it behaved liked Map.

---

I'm not familiar w/ the intricacies of jackson serialization / deserialization. I'd be pretty surprised if there is widespread use of serializing Multisets (using the existing jackson library)... I would have guessed a lot of other people would be bringing up this exact issue if they were using it. Does jackson ever create hard-breaks in backwards compatibility?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.