In Node.js using JSON.stringify results in 'process out of memory' error
As @freakish mentioned the problem was my data was too big.
The reason the data was so big was due to a large number of images that were being returned as objects. In the end all I needed to do was encode the object as base64 using Buffers and then the size of the data became much more manageable.