AnsweredAssumed Answered

Is there assertion which can convert JSON to XML and XML to JSON in Layer7?

Question asked by vgdarur on Jan 20, 2015
Latest reply on Jan 27, 2015 by DTZ

Hi

 

there may be situations where JSON should be converted to XML

 

is there any assertion in Layer7 to do this.

 

we have this in languages like Java. Help is much appreciated.

 

 

  Example JSON String

"{ employee : { age:32, name : venugopal Darur,  employed:true}}";


XMl String expected is


<employee>

 

    <employed>true</employed>

 

    <name>Venugopal Darur</name>

 

    <age>32</age>

 

</employee>

   

Outcomes