title: JSON (simple) parsing : null values
body: <p>It's my first time working with a JSON file, so I went with simple JSON library. Here's what works:</p>
  <pre><code>    import java.io.*;
      import org.json.simple.JSONObject;
      import org.json.simple.parser.JSONParser;
      import org.json.simple.parser.ParseException;
      
      public class TestClass {
          
          public static void main(String args[]) {
      
                JSONParser jsonP = new JSONParser();
                try {
                   JSONObject jsonO = (JSONObject)jsonP.parse(new FileReader(&quot;/Users/ryan/eclipse-workspace/JavaRentalCar/src/CarsBDD.json&quot;));
               
                   String matricule = (String) jsonO.get(&quot;matricule&quot;);
                   String marque = (String) jsonO.get(&quot;marque&quot;);
                   String modele = (String) jsonO.get(&quot;modele&quot;);
                   System.out.println(&quot;Matricule: &quot;+ matricule);
                   System.out.println(&quot;Marque: &quot;+ marque);
                   System.out.println(&quot;Modele: &quot;+ modele);
                } catch (FileNotFoundException e) {
                   e.printStackTrace();
                } catch (IOException e) {
                   e.printStackTrace();
                } catch (ParseException e) {
                   e.printStackTrace();
                }
             }
          }
  </code></pre>
  <p>My json file :</p>
  <pre><code>{
      &quot;cars&quot;: [
          {
              &quot;matricule&quot;: &quot;01233A3E&quot;,
              &quot;marque&quot;: &quot;Tesla&quot;,
              &quot;modele&quot;: &quot;Model X&quot;,
              &quot;kilometrage&quot;: 155,
              &quot;boiteVitessse&quot;: &quot;Automatique&quot;,
              &quot;climatisation&quot;: true,
              &quot;carburant&quot;: &quot;Electrique&quot;,
              &quot;categorie&quot;: &quot;Classe A&quot;,
              &quot;vehiculeEtat&quot;: &quot;Bon&quot;,
              &quot;disponibilite&quot;: true,
              &quot;coutJour&quot;: 15
          }
      ]
  }
  </code></pre>
  <p>When i run the code, Matricule, Marque and Modele are = to null.</p>
  <p>Can you help me ?</p>