Spring Boot

戻り値のJSONにPretty Printを設定する

インデントなどでキレイにしたい場合。

application.propertiesに以下を設定

spring.jackson.serialization.indent-output=true

Pretty print JSON output of Spring Boot Actuator endpoints - Stack Overflow

ターミナルとかなら

curl xxxxx.json | jq

とかで整形しちゃうのが早いけど。。

jq コマンドを使う日常のご紹介 - Qiita


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS