title: How to Read JSON file in Dart console app?
body: <p>This is a full-console app in dart. Its not flutter.
  I need to import data from a local json file and send it as response. I need to read the data as array of Map in dart. The data is in following format.</p>
  <pre><code>{    
  &quot;users&quot;:[
         {
            &quot;id&quot;:1,
            &quot;user&quot;:&quot;user1&quot;,
            &quot;password&quot;:&quot;p455w0rd&quot;
         },
         {
            &quot;id&quot;:2,
            &quot;user&quot;:&quot;user2&quot;,
            &quot;pass&quot;:&quot;p455w0rd&quot;
         }
    ] 
  }
  </code></pre>
  <p>Every where I see the Flutter example which imports flutter/services as rootBundle to read into the JSON file. I do not find a way to implement this in pure dart.</p>