Using Deluge scripting to create/update data in TabularSections

Using Deluge scripting to create/update data in TabularSections

I am having following Form structure with some other usual fields, and a tabular section which allows putting question, self rating and lead rating. (pic below)



I am trying to create a record of this form via Deluge, but can't figure out way to populate records in Tabular Sections. Following is my sample code

  1. updatedPerfReview = Map();
  2. diffsNew = List();
  3. diffsNew.add({"Lead_Client_Rating":"4","Question":"Is Skilled For Job?","Self_Rating1":"5"});

  4. tabSecs = Map();
  5. // Difference is the Tabular Section heading, which is coming back in JSON as well
  6. tabSecs.put("Differences", diffsNew);
  7. updatedPerfReview.put("tabularSections", tabSecs);
  8. info zoho.people.create("Performance_Review", updatedPerfReview);

Any help appreciated here.