title: Read Multiple Objects JSON with Java
body: <p>I need to read a JSON file in Java with the following structure:</p>
  
  <pre><code>{"id_user":"10","level":"medium","text":"hello 10"}
  {"id_user":"20","level":"medium","text":"hello 20"}
  {"id_user":"30","level":"medium","text":"hello 30"}
  </code></pre>
  
  <p>Thanks!.</p>
  
  <hr>
  
  <p>[POST-EDITED]</p>
  
  <p>I have this code but only read the first JSON Object, I need read the three objects one by one.    </p>
  
  <pre><code>private void loadJSONFile(){
          FileReader fileReader = new FileReader(pathFile);
          try (JsonReader jsonReader = new JsonReader(fileReader)) {
              jsonReader.beginObject();
              while (jsonReader.hasNext()) {
                  String name = jsonReader.nextName();
                  if (name.equals("filter_level")) {
                      System.out.println(jsonReader.nextString());
                  } else if (name.equals("text")) {
                      System.out.println("text: " + jsonReader.nextString());
                  } else {
                      jsonReader.skipValue();
                  }
              }
              jsonReader.endObject();
              jsonReader.close();
          }
      }
  </code></pre>
  
  <p>thanks!</p>