title: Accessing multiple JSON objects in deluge script
body: <p>I am building an application in Zoho Creator that retrieves information from an external membership database.</p>
  
  <p>I have a GET request which retrieves the memberships of a person. A person can have multiple memberships which result in multiple JSON objects being returned, for example:</p>
  
  <pre><code> [
    {
      "id": 76397,
      "membership_level_id": 395,
      "start_date": "2019-03-04",
      "end_date": "2020-03-03",
      "state": "partial",
      "created_at": "2019-01-07T19:13:16+1100",
      "adult_members": [
        {
          "contact_id": 5389
        }
      ],
      "child_members": [],
      "contact_id": 5389
    },
    {
      "id": 8728,
      "membership_level_id": 937,
      "start_date": "2019-01-07",
      "end_date": "2019-02-06",
      "state": "expired",
      "created_at": "2019-01-07T20:09:12+1100",
      "adult_members": [
        {
          "contact_id": 5389
        }
      ],
      "child_members": [],
      "contact_id": 5389
    }
  ]
  </code></pre>
  
  <p>What I am attempting to achieve, is that for every membership that is returned (in the above sample, there is two), a record in the <code>Memberships</code> form is created.</p>
  
  <p>In the above instance, there should be two records created in the <code>Memberships</code> form with their associated key-value pairs.</p>
  
  <p>I have tried converting the JSON response to a <code>.toJSONlist();</code> but can't seem to pull out the information.</p>
  
  <p>Any idea on how I can create a new record in a form, for every membership that is returned in the response?</p>