Flattening nested attributes in Jackson

前端 未结 1 1356
再見小時候
再見小時候 2020-12-11 17:45

I have the need of defining a flat POJO that maps its (flat) attributes to a nested object in its JSON specification. Better explain with code

{
    \"offset         


        
相关标签:
1条回答
  • 2020-12-11 18:13

    Might be currently impossible.

    This because Jackson currently supports @JacksonUnwrapped for the opposite case, but no @JacksonWrapped

    Feature request: https://github.com/FasterXML/jackson-annotations/issues/42

    0 讨论(0)
提交回复
热议问题