title: Parse JSON string in Java
body: <p>I'm trying to parse a JSON string in Java but I cant figure out how!
  I'm using lib-JSON right now:</p>
  
  <pre><code>import net.sf.json.*;
  </code></pre>
  
  <p>.</p>
  
  <pre><code>String jsonStr = "{'string':'JSON', 'integer': 1, 'double': 2.0, 'boolean': true}";
  JSONObject jsonObj = (JSONObject) JSONSerializer.toJSON(jsonStr); // this line crashes
  </code></pre>
  
  <p>I get no compilation errors but when i run the program it says: </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at ircbot.plugins.SiteTitle.&lt;init&gt;(SiteTitle.java:28)
      at ircbot.Main.main(Main.java:10)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 14 more
  Java Result: 1
  BUILD SUCCESSFUL (total time: 0 seconds)
  </code></pre>
  
  <p>It sounds like I'm missing some dependencies, but I don't know how to find out if or which!</p>
  
  <p>Thanks in advance!</p>