title: JavaScript Express returning empty JSON
body: <p>Folks,
    I have a function that creates an Object that I would like to return back to the browser.  For some reason, the browser is getting an empty Object without the contents:</p>
  
  <pre><code>{
      pName: [ ]
  }
  </code></pre>
  
  <p>Here is the object via <code>console.log(require('util').inspect(projectObject, false, 10));</code></p>
  
  <pre><code>{ pName:
      [ foo:
          [ nodejs: 
              [ staging: 
                  [ 
                      { name: 'i-4a14c51a', id: 'i-4a14c51a' },
                      { name: 'i-19fc094a', id: 'i-19fc094a' },
                  ],
                production: 
                  [ 
                      { name: 'i-5f14c50f', id: 'i-5f14c50f' },
                      { name: 'i-b1fb0ee2', id: 'i-b1fb0ee2' },
                  ]
              ]
         ],
  ...
  </code></pre>
  
  <p>I would imagine the reason its not returning the object is because it thinks that the first entity is empty.</p>
  
  <p>Where am I making the mistake? The result needs to look liks:</p>
  
  <pre><code>"hosts": [
  {
    "projectA": [
       {
         "foo": [
            {
              "nodejs": [
            {
          "production": [
                         {
                           "name": "Her blog",
                           "cmd": "ssh username@blog2.example.com"
                         }
                      ]
                    }
                  ]
                }
              ]
             }
          ]
       },
    ]
  </code></pre>