Skip to content

Instantly share code, notes, and snippets.

@awsp
Created May 15, 2014 20:35
Show Gist options
  • Save awsp/4de6f99734768e31ace3 to your computer and use it in GitHub Desktop.
Save awsp/4de6f99734768e31ace3 to your computer and use it in GitHub Desktop.
> var c = SC.Object.create({ foo: "bar" });
undefined
> c
SC.Object {__sc_super__: Object, _kvo_cloned: null, foo: "bar", _observers: Array[0], outlets: Array[0]…}
> var d = JSON.stringify(c)
undefined
> var e = JSON.parse(d)
undefined
> e
Object {__sc_super__: Object, _kvo_cloned: null, foo: "bar", _observers: Array[0], outlets: Array[0]…}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment