CMDBuild Forum

How can i use JsonParser() in workflow xpdl (script) ?

Hello, 

i want to write a script (in XPDL for Process) which will load json file from folder to JsonObject. 

But when i used this

JSONParser parser = new JSONParser(); 
Object obj = parser.parse(new FileReader("/opt/cmdb/logs/test.json"));
JSONObject jsonObject = (JSONObject) obj; 
System.out.println(jsonObject); 

  I saw error:

org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Typed variable declaration : Class: JSONParser not found in namespace

How can i resolve this problem ?