开发者

How do I make Jackson's build() method pretty-print its JSON output?

Merged with When using Spring MVC for REST, how do you enable Jackson to pretty-print rendered JSON?.

I use Spring, Jersey and Jackson to provide an API that produces JSON.

My @Component has a @Get method that returns Response.ok(enti开发者_高级运维ty).build().

That output is very compact. How do I make that output pretty / formatted?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜