Create a form with data from json


#1

i use ionic2
i have a json file which contains :
{
“service”: [{
“title”: “contact”,
“element”: [{
“section”: “info”,
“type”: “label”,
“label”: “nom”
}, {
“section”: “info”,
“type”: “edit”,
“label”: “prenom”
}, {
“section”: “info”,
“type”: “button”,
“label”: “homme”
}, {
“section”: “info”,
“type”: “button”,
“label”: “femme”
}]
}]
}
when i read it i create a button when i find type: button
now i create a service which have an observable and in my component i subscribe to this observable
and i have all the data on a variable but i don’t know how to use this data
can someone help me or give me another way to do this task
thanks