JAX-RS, Map to JSON without the overhead?

前端 未结 3 636
孤独总比滥情好
孤独总比滥情好 2020-12-09 13:07

I\'m using JAX-RS to create restful webservices in Java. I am getting to much overhead in the produced JSON.

Data class:

@XmlRootElement
@XmlAccessor         


        
3条回答
  •  忘掉有多难
    2020-12-09 14:05

    Simplest way would be using List instead where Pair is just a Javabean with two properties.

提交回复
热议问题