Cannot Read JSON request body parameters in wso2 ESB as an api -
i have created api in wso2 esb (4.8.1) , wanted send put request api request body. have tried sample , wanted log property values in insequence of defined api.
this request body:
this way how tried log location name:
but i’m getting error this:
(error - synapsejsonpath #stringvalueof. error evaluating json path . returning empty result. error>>> invalid path)
so how can read these values?
to achieve requirement, should send "content-type" http header request below,
"content-type : application/json"
then can log specific json element below.
<log> <property name="location" expression="json-eval($.coordinates.location[0].name)"></property> </log>
then can see following log,
thanks.
Comments
Post a Comment