title: Read JsonElement from Json file?
body: <p>I need to read <code>JsonElements</code> from given <code>JSON</code> files. I am using <code>org.json.simple</code> jar.</p>
  <p>Here is the sample of my json:</p>
  <pre><code>[{
   &quot;Submission ID&quot;: &quot;9938306&quot;,
   &quot;Lat&quot;: &quot;17.447191666666665&quot;,
   &quot;Long&quot;: &quot;78.38849&quot;
   },
   {
    &quot;Submission ID&quot;: &quot;9938306&quot;,
   &quot;Lat&quot;: &quot;17.447191666666665&quot;,
   &quot;Long&quot;: &quot;78.38849&quot;
  }]
  </code></pre>
  <p>I wrote this following code to read <code>JsonArray</code> but not able to figure out how to read <code>JsonElements</code> from it:</p>
  <pre><code>try {
        JSONParser parser = new JSONParser();
        Object obj = parser.parse(new FileReader(&quot;sampleData.json&quot;));
        JSONArray array = (JSONArray) obj;
        Iterator iter = array.iterator();
        while (iter.hasNext()){
  
        }
      }
  </code></pre>
  <p>How can I read all <code>JSONelements</code> for each <code>JSONarray</code>? For example:</p>
  <h1>EDIT</h1>
  <p>I want to iterate all <code>JsonElements</code> in <code>JsonAray</code>. In my given Json I do have <code>submission ID </code> and <code>submission_ID</code>. Key is dynamic in some point and I need to read it and want to apply some <code>regex</code> on it.</p>