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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -