title: How to set a value of a nested array within JsonObject using minimal-json library?
body: <p>I am using <a href="https://github.com/ralfstx/minimal-json" rel="nofollow noreferrer">https://github.com/ralfstx/minimal-json</a> as the json library for this project and I have a json input that has a nested array with key value pairs inside of the array.</p>
  
  <p>The Json looks like this:</p>
  
  <pre><code>{
  "info":[  
    {  
       "name":"thing1",
       "value":"value1"
    },
    {  
       "name":"user",
       "value":"admin"
    },
    {  
       "name":"password",
       "value":""
    }
    ],
     "logonStyle":null,
     "logonUXVersion":0
  }
  </code></pre>
  
  <p>So I have tried doing things like:</p>
  
  <pre><code>jsonRes.get("info").set("password", "tothisvalue");
  jsonRes.set("password", "tothisvalue");
  </code></pre>
  
  <p>but neither of those ways work.  I noticed from this Q&amp;A it had a different library where you could chain them : <a href="https://stackoverflow.com/questions/14898768/how-to-access-nested-elements-of-json-object-using-getjsonarray-method">How to access nested elements of json object using getJSONArray method</a></p>
  
  <p>Wondering if I could make a case to add in this library or if someone knows a way to set a value in the nested array.</p>