I faced this issue today in one of the API, so I thought that I should share this with others too.
I had written DWL code for its as below
%dw 2.0
import * from dw::core::Strings
output application/json
fun extract(key)= substringBefore((substringAfter(key, "[")),"]")
---
{
value: extract(payload.message)
}
it gave me desired o/p
{
"value": "009"
}
Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…