in Java when i use the
@Produces(\"application/json\")
annotation the output is not formated into human readable form. How do i achive that
If you are using Spring, then you can globally set the property
spring.jackson.serialization.INDENT_OUTPUT=true
More info at https://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.html