mule - Dataweave field named "zip" how do I use it in the mapping? -
i receiving payload such:
{ "street": "123 fake st", "city": "san francisco" "state": "ca", "zip": 94117 }
but in dataweave, looks editor thinks zip function. how not think that? here dataweave:
address: { street: payload.address.street, city: payload.address.city, state: payload.address.state, zip: payload.address.zip },
the error being listed on "zip: payload.address.zip"
thanks help
as mentioned anirban, configuration working properly. indeed when open dataweave code in studio, zip field recognized function. , studio lists error.
therefore avoid ambiguity, suggest wrap inside single quote: zip: payload.address.'zip'
. no error listed anymore.
Comments
Post a Comment