title: JSON file parsing in java
body: <p>Edited. Anyone know how to read the record in every new line. The below code can only read 1 sentence.    </p>
  
  <pre><code>JSONParser parser = new JSONParser();
      try
      {
          Object obj = parser.parse(new FileReader("src/test.json"));
          JSONObject jsonObject = (JSONObject) obj;
          String name = (String) jsonObject.get("name");
          System.out.println(name);
  
  
  
      }
  </code></pre>