The part I need clarification is this optionSet[id,name,option]. I got back the optionSet id and name. How can I get list of options associated with this option set to be included in the optionset object?
@Gassim thank you. The second example kind of give me a clue. But because of the complication and the deep nested json data I added a data element attribute table write my own sequel query to fetch the data element. I will try to add the options part based on this understanding.