title: Set JSON Input value Dynamic
body: <p>I am trying to set JSON value into Array List Dynamically. It's working as expected if it's constant value but how to set this value on the fly. Your response is highly appreciated.</p>
  
  <p>I am getting JSON value from a URL like</p>
  
  <pre><code> https://www.abc.test/test.json
  </code></pre>
  
  <p><strong>Entire Source Code</strong></p>
  
  <pre><code>https://github.com/bpncool/SectionedExpandableGridRecyclerView
  </code></pre>
  
  <p>__JSON Input: __</p>
  
  <pre><code>  {
    "objectsArray": [
      {
        "name": "Apple Products",
        "Data": {
          "type1": "iPhone",
          "type2": "iPad",
          "type3": "iPod",
          "type4": "iMac"
        }
      },
      {
        "name": "Companies",
        "Data": {
          "type1": "LG",
          "type2": "Apple",
          "type3": "Samsung"
        }
      }
    ]
  }
  </code></pre>
  
  <p><strong>Java Static Code</strong></p>
  
  <pre><code>ArrayList&lt;Item&gt; arrayList = new ArrayList&lt;&gt;();
  arrayList.add(new Item("iPhone", 0));
  arrayList.add(new Item("iPad", 1));
  arrayList.add(new Item("iPod", 2));
  arrayList.add(new Item("iMac", 3));
  sectionedExpandableLayoutHelper.addSection("Apple Products", arrayList);
  arrayList = new ArrayList&lt;&gt;();
  arrayList.add(new Item("LG", 0));
  arrayList.add(new Item("Apple", 1));
  arrayList.add(new Item("Samsung", 2));
  sectionedExpandableLayoutHelper.addSection("Companies", arrayList);
  sectionedExpandableLayoutHelper.notifyDataSetChanged()
  </code></pre>