title: Create a empty JSON object from an existing JSON object array
body: <p>I have a JSON object with two arrays of an object <code>x</code>.</p>
  
  <p>I'm using angularJS and I want to add/edit/delete objects in the JSON (just like the Angular TODO app example on angular.org).</p>
  
  <p>Is there a way to create a new empty (with the structure of <code>x</code> but no values) JSON object of <code>x</code>, and simply push that to the above JSON object array?</p>
  
  <p>How do I go about creating an empty value JSON object of <code>x</code>?</p>
  
  <p>My Sample object x is (I nullified all the values) pasted below. So my JSON is just an array of these objects. In Angular, I want the user to fill out a form and hold the data in an empty object of this type and push it to the array. That's my goal.</p>
  
  <p><strong>Sample JSON</strong></p>
  
  <pre><code>      [{
          "id": null,
          "title": "",
          "date": {},
          "billPayerId": null,
          "notes": "Sample Notes",
          "billFinances": {
              "billPayerId": null,
              "billItemEntry": [
                  {
                      "itemDescriptionId": 1,
                      "itemDescription": "",
                      "userIdAndLiableCost": [
                          {
                              "userId": null,
                              "liableCost": null
                          },
                          {
                              "userId": null,
                              "liableCost": null
                          }
                      ]
                  },
                  {
                      "itemDescriptionId": null,
                      "itemDescription": "",
                      "userIdAndLiableCost": [
                          {
                              "userId": null,
                              "liableCost": null
                          },
                          {
                              "userId": null,
                              "liableCost": null
                          }
                      ]
                  }
              ],
              "billTotal": null
          },
          "groupId": null
      }];
  </code></pre>