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();
//lisa_vse_request.setBodyText("theBody");
testExec.setStateValue("theBody",theBody);
JSONObject o = new JSONObject(theBody);
String xmlResult = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><JSON2XML>";
xmlResult += org.json.XML.toString(o) + "</JSON2XML>";
testExec.setStateValue("XML",xmlResult);
Kindly let me know how can we create a custom filter to perform this feature?