I'm trying to use org.json on groovy SoapUI to convert a JSON string into XML.
But When I'm trying to perform my groovy script (this one)
import org.json.JSONObject
import org.json.XML
def str = "{'name':'JSON','integer':1,'double':2.0,'boolean':true,'nested':{'id':42},'array':[1,2,3]}";
JSONObject json = new JSONObject(str);
String xml = XML.toString(json);
log.info(xml)
I'm getting an error "unable to resolve class org.json.JSONObject , line 1, column 1.
I downloaded the jar on http://mvnrepository.com/artifact/org.json/json/20141113 , I put it on SoapUI/bin/ext but It's not working.
Can someone please help me with this?