Fist: explanation of the difference between org.json.simple.JSONObject and org.json.JSONObject ??
Secondly: I have code with org.json.JSONObject and org.json.JSONException. When I edit the code in eclipse (JUNO), it solves the JSON exception type and imports the org.json.JSONException package, but when I run the project using maven on the command line, I have a problem (JSONException cannot be resolved for the type). I tried to solve the problem by adding a dependency on pom.xml as follows:
<dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1</version>
but I'm not sure that it is correct. I even load the can of org. java-json.jar and add it to the web deployment assembly, but still the same error. Who can help?
source share