In this blog, I'm going to explain how to read json payload in the mule flow.
For an example, we will assume thatjson payload receives as below
You have to use the JSON prefix to access thejson payload.
If you need to access the name of the first person, you need to write the mule expression as below.
You can use the same steps followed in the previous blog (Mule ESB - How to readJSON payload content ?)
Enjoy..!!
For an example, we will assume that
{
"persons ": [{
"person": {
"name": "Tharanga Wijeweear"
}
} ]
}
You have to use the JSON prefix to access the
If you need to access the name of the first person, you need to write the mule expression as below.
#[ json : persons[ 0] /person/name]
You can use the same steps followed in the previous blog (Mule ESB - How to read
Enjoy..!!
Nice and good article.Thanks for sharing this useful information.
ReplyDeleteMulesoft Online Training
Mulesoft Training in Hyderabad