I checked the docs: http://parse.com/docs/js/api/classes/Parse.Object.html#methods_fromJSON
And I did this: Parse.Object.fromJSON(this.document)
, but I get: Uncaught Error: Cannot create an object without a className
.
What's the correct way of using this method?
NOTE: console.log(this.document)
outputs: Object {}
(A Parse object that was previously turned into a JSON object with toJSON
.)