- 判断 获取字符串的第一个数字或者字符串是否是 1
%dw 2.0
import * from dw::core::Strings
output application/json ---
payload startsWith('1')
- 将text格式或者json字符串转换为json格式
%dw 2.0
import * from dw
%dw 2.0
import * from dw::core::Strings
output application/json ---
payload startsWith('1')
%dw 2.0
import * from dw