Here I\'m creating a JavaScript object and converting it to a JSON string, but JSON.stringify returns \"[object Object]\" in this case, instead of
JSON.stringify
\"[object Object]\"
theObject.toString()
The .toString() method is culprit. Remove it; and the fiddle shall work: http://jsfiddle.net/XX2sB/1/
.toString()