- 追加された行はこの色です。
- 削除された行はこの色です。
[[Spring Boot]]
**戻り値のJSONにPretty Printを設定する [#ke90bc7c]
インデントなどでキレイにしたい場合。
application.propertiesに以下を設定
spring.jackson.serialization.indent-output=true
[[Pretty print JSON output of Spring Boot Actuator endpoints - Stack Overflow>http://stackoverflow.com/questions/24503790/pretty-print-json-output-of-spring-boot-actuator-endpoints]]
ターミナルとかなら
curl xxxxx.json | jq
とかで整形しちゃうのが早いけど。。
[[jq コマンドを使う日常のご紹介 - Qiita>http://qiita.com/takeshinoda@github/items/2dec7a72930ec1f658af]]