FasterXML / FasterXML/jackson-module-scala
Add option to use ListMap instead Map and preserve properties order for untyped deserialization
- Dominant language
- Scala
- Stars
- 506
- Forks
- 138
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 48
Description
Hi, recently i hit an use case where:
* it shoud rely on type Any to parse an arbitrary deep json as Map[String,Any]
* but preserving order of keys
Afaiu the code for untyped json deserialization [uses Map in a fixed way](https://github.com/FasterXML/jackson-module-scala/blob/1d8afbed904af98badeb6db323c04d714c5d0684/src/main/scala/tools/jackson/module/scala/deser/UntypedObjectDeserializerModule.scala#L26).
To change it for preserve order i had to implement a 100 loc class with a new untyped deserializar and rebuild the scala module: https://gist.github.com/jneira-stratio/f0566c79b0284b05bb421d104bd318d7
My first question is if there is another, simpler way to get it working.
Otoh would make sense to add a configuration option to being able to get that behaviour?
It seems to me that it is a relative common use case.
Thanks in advance!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.