开发者

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

开发者 https://www.devze.com 2023-03-09 12:35 出处:网络
Merged with When using Spring MVC for REST, how do you enable Jackson to pretty-print rendered JSON?.
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

精彩评论

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