title: How to append array to existing json javascript?
body: <p>I want to create a json object like:</p>
  
  <pre><code>{
     name: "Julia"
     birthdate: "xxxx"
     movies: [{title: "movie1", rating: 5}, {title: "movie2", rating 3}}]
  }
  </code></pre>
  
  <p>I want to do something like:</p>
  
  <pre><code>var myobj = [];
  myobj.push({name: "Julia", birthdate: "xxxx"});
  
  myobj.movies = [];
  myobj.movies.push({title: "movie1", rating: 5});
  myobj.movies.push({title: "movie2", rating: 3});
  </code></pre>
  
  <p>But I am unable to create that "movies" part. How do I accomplish this?</p>