title: org.json.simple.JSONObject VS org.json.JSONObject , JSONException cannot be resolved to a type
body: <p>First:  can someone provide an explanation of the differences between  <code>org.json.simple.JSONObject</code> and <code>org.json.JSONObject</code>?</p>
  <p>Second: I have a code  with  <code>org.json.JSONObject</code> and <code>org.json.JSONException</code>. When I edit the code in eclipse ( JUNO) it resolves the type of <code>JSONException</code> and imports the package <code>org.json.JSONException</code> but when I run the project using maven in command line I have a problem  (  <code>JSONException cannot be resolved to a type</code>). I tried to solve the issue by adding dependency to pom.xml like this :</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
      &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
   &lt;/dependency&gt;
  </code></pre>
  <p>but I am not sure if it is the right one . I even download the jar of org.
  java-json.jar and add it to web deployment assembly but still the same error. Can anyone help ?</p>