I am facing issue while converting xml to json by using payloadfactory mediator.
the xml structure is containing
<base>tyuä</base>
and it should be transformed into
"base":"tyuä"
here is the snippet of my code :::
<payloadFactory media-type="json">
<format>
{
"base": ""
}
</format>
<args>
<arg evaluator="xml" expression="//base/text()"/>
</args>
</payloadFactory>
But it is giving me as "base":"tyuä". What should be done to resolve it??