json returning object object

JavaScript
JSON.stringify(theObject)
Source

Also in JavaScript: