title: How to use the org.json Java library with Java 7
body: <p>I need some simple JSON parsing in my application and the <a href="http://mvnrepository.com/artifact/org.json/json">Douglas Crockford library</a> seems exactly what I need.</p>
  
  <p>However, I seem to be running into a problem. I'm getting the following error:</p>
  
  <p><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: org/json/JSONObject : Unsupported major.minor version 52.0</code></p>
  
  <p>I Googled around a bit and I get the impression that this is due to some version incompatibility. I've tried changing Java versions but it doesn't seem to help. I'm using Java 7 and Java 7 features in my program and ultimately I want to use Java 7.</p>
  
  <p>How can I resolve this issue?</p>
  
  <p>PS: I looked at Jackson and GSON and definitely don't want to use either so please don't suggest as an alternative.</p>