title: Using javax/json, how can I add elements to an existing JsonArray?
body: <p>I read a JSON array from a file but I'd like to add additional entries into the array. How would I go about doing this using the javax.json library?</p>
  
  <pre><code>private String getJson(FileInputStream fis) throws IOException {
      JsonReader jsonReader = Json.createReader(fis);
      // Place where I'd like to get more entries.
  
      String temp = jsonReader.readArray().toString();
      jsonReader.close();
      fis.close();
      return temp;
  }
  </code></pre>
  
  <p>Preview of the JSON format of the file:</p>
  
  <pre><code>[
      {"imgOne": "test2.png", "imgTwo": "test1.png", "score": 123123.1},
      {"imgOne": "test2.png", "imgTwo": "test1.png", "score": 1234533.1}
  ]
  </code></pre>