If I defined an object in JS with:
var j={\"name\":\"binchen\"};
How can I convert the object to JSON? The output string should be:
Very easy to use method, but don't use it in release (because of possible compatibility problems).
Great for testing on your side.
Object.prototype.toSource() //Usage: obj.toSource();