Dynamic Form Elements

Hi,

This may be a basic question, but how can I populate a form containing radio buttons dynamically based on an array of JSON id and name variables like so:

[ { "id": "test", "name": "Test"}, { "id": "test2", "name": "Test 2" } ]

I’m trying to dynamically populate a form instead of doing something along the lines of this:

<flowable:formProperty id="options_list" type="enum" expression="${cpd:conf('{&quot;cpd_type&quot;:&quot;multi_select&quot;}')}"
  readable="false"
  required="true">
      <flowable:value id="test" name="Test" />
      <flowable:value id="test2" name="Test 2" />
</flowable:formProperty>

Any pointers are appreciated!