Dynamically create multiple kind of options from a Rest Api
First of all I have a Rest API that the response variables (I grab it as json) are of course in an array. This means that the following resonse might have multiple data. The variables are:
option_id,  (there might be multiple options) 
 type,          (the type might be radio, checkbox, drop_down, field) 
 is_require   
 sort_order, 
 is_dependent, 
 title, 
 field_price 
 choices[    (These are the choices of the specific option, for example the checkboxes, etc) 
    option_type_id 
    title 
    sort_order 
    is_preselected 
    in_group_id 
    dependent_ids 
 ]
As I am not very experienced in javascript I am not sure I can accomplish this. 
 I have seen the documentation  
 http://docs.tiggzi.com/tutorials/buil...  
 but I don't think that this covers my case.
Could you please give me an example code? 
 Thank you!