how to generate JSON from type select

ananth
ananth Registered Posts: 41 ✭✭✭✭✭

we have created dss plugin with macros and we have runnable.json where we create UI and one of the requirement is to list users where we have users list from excel how to generate JSON from that same

sample json as below, so now this JSOn is not accepted so we have to manually edit JSON that supports in DSS, we have around 1000 array objects but it is not feasible how to achieve this?

{
"label": "abc",
"options": [{
"label": "dss_training",
"value": "t::dss_training"
}
]
}, {
"label": "xyz",
"options": [{
"label": "dss_d",
"value": "id::dss_d"
}, {
"label": "dss_p",
"value": "id::dss_p"
}, {
"label": "dss_training",
"value": "id::dss_training"
}
]
}

Answers

Setup Info
    Tags
      Help me…