【发布时间】:2020-11-28 10:46:37
【问题描述】:
测试 POC 并想知道在 Anypoint Studio 控制台中漂亮打印 JSON 有效负载的最快/最简单方法是什么。我宁愿不知道如何使用Groovy component 来完成此操作。
我已尝试将 application/json indent 属性设置为 true,如下所示,但它仍将整个对象打印在一行上(缩进)。
output application/json indent=true
有任何用于快速 POC 工作的轻量级解决方案吗?
【问题讨论】:
-
你究竟在做什么来记录?请以 XML 格式分享您的流程。
标签: json logging mule pretty-print