title: How can i remove a line in a JSON in JAVA
body: <p>My JSON:</p>
  
  <pre><code>{
      "adresses": [
          {
              "region": "Auvergne-Rhône-Alpes",
              "pertinence": 0.41,
              "cp": "73200",
              "coordonnee": [
                  45.6681753,
                  6.3863336
              ],
              "rue": "Rue Pasteur",
              "osm_id": "8063355",
              "pays": "France",
              "ville": "Albertville",
              "quartier": "Le Parstet",
              "nom": "",
              "secteur": "Albertville",
              "numero": ""
          },
          {
              "region": "Auvergne-Rhône-Alpes",
              "pertinence": 0.41,
              "cp": "73200",
              "coordonnee": [
                  45.6635769,
                  6.3830012
              ],
              "rue": "Rue Pasteur",
              "osm_id": "69253010",
              "pays": "France",
              "ville": "Albertville",
              "quartier": "",
              "nom": "",
              "secteur": "Albertville",
              "numero": ""
          },
          {
              "region": "Auvergne-Rhône-Alpes",
              "pertinence": 0.41,
              "cp": "73400",
              "coordonnee": [
                  45.7469095,
                  6.4237485
              ],
              "rue": "Rue Pasteur",
              "osm_id": "170250718",
              "pays": "France",
              "ville": "Ugine",
              "quartier": "",
              "nom": "",
              "secteur": "Albertville",
              "numero": ""
          }
      ]
  }
  </code></pre>
  
  <p>I need to remove one of adresses when "osm_id" is equals to a variable.</p>
  
  <p>I have started to put the JSON in a ArrayList string for delete the line I want then redo the JSON.
  But element "coordonnee" is an array, and i don't know who can i do.</p>
  
  <p>Here my trial :</p>
  
  <pre><code>    JSONObject req = reponse.convertToJsonObject();
      JSONArray adresses = req.getJSONArray( "adresses" );
      ArrayList&lt;String&gt; tab = new ArrayList&lt;String&gt;();
      for ( int i = 0; i &lt; adresses.length(); i++ ) {
      JSONObject adr = adresses.getJSONObject( i );
      String line = adr.getString( "region" ) + " " + adr.getDouble( "pertinence" ) + " "
      + adr.getString( "cp" ) + " " + adr.getString( "coordonnee" )
      + " " + adr.getString( "rue" ) + " " + adr.getString( "osm_id" ) + " "
      + adr.getString( "pays" ) + " " + adr.getString( "ville" )
       + " " + adr.getString( "quartier" ) + " " + adr.getString( "nom" ) + " "
      + adr.getString( "secteur" ) + " " + adr.getString( "numero" );
      tab.add( line );
  }
  </code></pre>
  
  <p>Can you help me ?</p>