title: how to push object into jsonArray in typescript?
body: <p>I am trying to pushing object into existing json data in typescript, i am new to typescript, i created array variable in typescript let jsonArrayObject: boolean[] = [];and this jsonArrayObject contains contactModel object, in this object contain properties like fname,lname, id,mobile. bellow i tried code. please help me.</p>
  
  <pre><code>let jsonArrayObject: boolean[] = [];
  
  jsonArrayObject=[{
      contactModel:{
      fname:"vboyini",
      lname:"simha",
      id:"1",
      Mobile:"99768999"
      }
  }];
  var modelData :String={
   fname:"vboyini2",
  lname:"simha2",
  id:"2",
  Mobile:"799768999"
  }
  </code></pre>
  
  <p>now i want unshift arrayitem that is contactModel object into jsonArrayObject. i tried bellow following code.</p>
  
  <p><code>this.jsonArrayObject.unshift({"contactModel":any=modelData})</code></p>
  
  <p>above code is not working. how can i push?please help me any one</p>