 <p>Consider the following:</p> <pre><code>&gt; console.log({ foo : { bar : [ { xxx : 1 } ] } }) { foo: { bar: [ [Object] ] } } </code></pre> <p>This is showing similar output to what you are seeing. The reason for the unexpected output is that a regular <code>console.log()</code> will only show nested objects up to a specific depth, after which it will abbreviate the output (in this case, it will show <code>[Object]</code> instead of the actual object). This doesn't mean the object is invalid, though, it's just shown in this shorter format when you print it.</p> <p>One solution to get to see the whole object is to convert it to JSON first:</p> <pre><code>&gt; console.log('%j', { foo : { bar : [ { xxx : 1 } ] } }) {"foo":{"bar":[{"xxx":1}]}} </code></pre> <p>Or, in your case:</p> <pre><code>console.log('%j', data); </code></pre>