title: How to Read JSON data from txt file in Java?
body: <p>I am now want to read a series of JSON data(Nodes data) from local txt file(shown below, <code>NODES.txt</code> ). I use javax.json to do this. </p>
  
  <p>Currently, I have a <strong>Node class</strong> which contains the attributes:<code>type, id, geometry class(contains type, coordinates), properties class (contains name);</code> </p>
  
  <p><strong>Here is the data I need to retrieve, it contains more than 500 nodes in it, here I just list 3 of them, so I need to use a loop to do it, I am quite new to this, please help !!</strong></p>
  
  <p>The sample JSON data in NODES.txt</p>
  
  <pre><code>[
   {
     "type" : "Feature",
     "id" : 8005583,
     "geometry" : {
      "type" : "Point",
      "coordinates" : [
       -123.2288,
       48.7578
      ]
     },
     "properties" : {
      "name" : 1
     }
    },
    {
     "type" : "Feature",
     "id" : 8005612,
     "geometry" : {
      "type" : "Point",
      "coordinates" : [
       -123.2271,
       48.7471
      ]
     },
     "properties" : {
      "name" : 2
     }
    },
    {
     "type" : "Feature",
     "id" : 8004171,
     "geometry" : {
      "type" : "Point",
      "coordinates" : [
       -123.266,
       48.7563
      ]
     },
     "properties" : {
      "name" : 3
     }
    },
       ****A Lot In the Between****
  {
     "type" : "Feature",
     "id" : 8004172,
     "geometry" : {
      "type" : "Point",
      "coordinates" : [
       -113.226,
       45.7563
      ]
     },
     "properties" : {
      "name" : 526
     }
    }
  ]
  </code></pre>