Hi,
I am using Extract Variable policy to extract a node-segment and then add it to another json. I am achieving this using type=nodeset . However, I see some escape characters introduced when inserting the node-segment in the other json.
Here is what I am doing:
Extract Variable policy
<JSONPayload> <Variable name="custom-tags" type="nodeset"> <JSONPath>$.user.custom-tags</JSONPath> </Variable> </JSONPayload>
I am then adding the node segment extracted to the larger JSON. But here is how the output is coming:
"custom-tags": "{\"appes\":[{\"Id\":\"ma\",\"Id\":\"23456\"},{\"pId\":\"dummy\",\"name\":\"some name\"}]}"
Where are the escape characters coming in from? How do I get rid of it?
Update: I have posted another question here. I believe these 2 are related.