【发布时间】:2019-04-27 13:10:45
【问题描述】:
在我的流程中,我读取并运行 (for-each) JSON 对象 数组。我用 APPEND 类型将每个对象插入到同一个文件中。
我想将每个JSON 和indent 存储为false(JSON 一行)和一个carriage-return,如下例所示:
{"hello:"world1"}
{"hello:"world2"}
{"hello:"world3"}
我用这个:
%dw 2.0
output application/json indent=false
---
payload ++ '\r'
但它返回一个错误,关于不能将对象强制转换为字符串。 我该如何解决这个问题?
【问题讨论】:
标签: mule tostring dataweave text-indent