AnsweredAssumed Answered

Can someone provide JAR file to add a custom filter which would convert JSON to XML in LISA 7.5.1

Question asked by vinit.malhotra on Feb 19, 2016
Latest reply on Feb 25, 2016 by vinit.malhotra

Hi All,


currently we are having a java code using JSON Object to convert the JSON to XML in which we are using jar file named org.json-20120521(got from google docs) and below is the code:-


import com.itko.util.ParameterList;

import java.lang.String;


import org.json.JSONObject;


// Manipulate request body text

String theBody = lisa_vse_request.getBodyText();





JSONObject o = new JSONObject(theBody);

String xmlResult = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><JSON2XML>";

xmlResult += org.json.XML.toString(o) + "</JSON2XML>";



Kindly let me know how can we create a custom filter to perform this feature?