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

0

16

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

My @Component has a @Get method that returns Response.ok(entity).build().

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

Agle answered 30/5, 2011 at 13:26 Comment(1)
I had a similar question for which I posted the answer here: #6542257 HTH!Scream

© 2022 - 2024 — McMap. All rights reserved.