title: Adding data to a json file in dart
body: <ul>
  <li><p>I have a <code>Json</code> file having some user data as an array , I am able to read those data in my flutter project , But  what I wanna do is to add some other user from the data I receive from the <code>textfield</code> in my flutter app. </p></li>
  <li><p>Can anyone tell me how to do that ? Thanks in advance.</p></li>
  </ul>
  
  <p><strong>My Json file looks something like this.</strong></p>
  
  <pre><code>    {
      "users": [
          {
              "id": 1,
              "username": "steve",
              "password": "captainamerica"
          }
       ]
      }
  </code></pre>
  
  <p>and I have to add another user with id - 2, username - tony, and password - ironman.</p>