how to create json object in angular2
<p>i want to create J SON object in angular2 like this:</p>

<pre><code>{ "classifications": [ 
                      { "type1" : [{"name":"text"},{"name":"text2"},{"name":"text2"}]} , 
                      { "type2" : [{"name":"image"},{"name":"img2"},{"name":"img3"},{"name":"img4"}]} ,
                      { "type3" : [{"name":"mp3"}]}
                      ] 
        }
</code></pre>

<p>is this the right way or not?? if not then how to make it and how to get data from this J SON object??</p>