i want to create J SON object in angular2 like this:
{ "classifications": [
{ "type1" : [{"name":"text"},{"name":"text2"},{"name":"text2"}]} ,
{ "type2" : [{"name":"image"},{"name":"img2"},{"name":"img3"},{"name":"img4"}]} ,
{ "type3" : [{"name":"mp3"}]}
]
}
is this the right way or not?? if not then how to make it and how to get data from this J SON object??
"for the keys but besides that it should be fine.