Jackson: Map serialization and deserialization

后端 未结 2 1051
有刺的猬
有刺的猬 2021-01-20 11:42

Is it possible to serialize/deserialize Map where type of object (mapped value) would be determined by its key.

{
    \"nu         


        
2条回答
  •  北海茫月
    2021-01-20 12:24

    Yes, it's possible. I would recommend you to try jsonschema2pojo. Just paste you JSON and select source type JSON.

提交回复
热议问题