I am converting json string to JSONOBJECT and i use import org.json.JSONObject but i use this
String jsonString = "{\"stat\": { \"sdr\": \"aa:bb:cc:dd:ee:ff\", \"rcv\": \"aa:bb:cc:dd:ee:ff\", \"time\": \"UTC in millis\", \"type\": 1, \"subt\": 1, \"argv\": [{\"type\": 1, \"val\":\"stackoverflow\"}]}}";
JSONObject jsonObject = new JSONObject(jsonString);
result: i get error
'Handler proccessing failed; nestedexception is java.lang.NoClassDefFoundError: org/json/JSONObject'
i have json-20170516.jar into spring-mvc project and i run this project in tomcat server. i have onother project simple java project and using above code for this simple java project and thisworked correctly. i'm confusing for above problem.