Try with this:
Input
{
"Abc": "1",
"BcD": "2",
"klm": "3",
"ZXC": "4"
}
Script
%dw 1.0
%input payload application/json
%output application/json
---
payload mapObject {
(lower ($$)[0] ++ (($$)[1 to -1])):$
}
Output
{
"abc": "1",
"bcD": "2",
"klm": "3",
"zXC": "4"
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…