Hi Maz,

There is a equivalent for JSON in script mediator, it's getPayloadJSON().
You can refer [1] for an example on converting JSON to XML.

[1] -
https://docs.wso2.com/display/ESB481/Sample+440%3A+Converting+JSON+to+XML+Using+XSLT

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/
<http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>

On Mon, Dec 22, 2014 at 3:51 PM, Maz Lakadia <[email protected]> wrote:

> I am trying to use Script Mediator to convert a message Payload. However,
> Samples are all using a method called getPayloadXML. My Payload will be in
> JSON form; is there a JSON equivalent of this? I could transform the
> Payload to XML for my mediations, but that's a last resort.
>
> Thank you,
>
> Maz
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to