2

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.)

alexchenco
  • 53,565
  • 76
  • 241
  • 413

1 Answers1

3

As the error message says, you're missing a className (in your JSON) that tells it what kind of Parse object it is.

jcaron
  • 17,302
  • 6
  • 32
  • 46