Convert JSON many objects to single JSON using Jackson

前端 未结 2 1312
北海茫月
北海茫月 2020-12-10 03:46

I have JSON, with differents levels field, so I want to convert to a single JSON with fields with one level for example:

{
  \"prop1\":\"value1\",
  \"prob2         


        
2条回答
  •  [愿得一人]
    2020-12-10 04:15

    Try implementing the @JsonUnwrapped annotation. More information at http://jackson.codehaus.org/1.9.9/javadoc/org/codehaus/jackson/annotate/JsonUnwrapped.html

提交回复
热议问题