Hello, How can i read JSON data in Sproutcore?
+2
A:
SC.json.decode(json)
will decode and SC.json.encode(json)
will encode. Where possible this will use the browser's native implementation which should be quite fast. Alternatively it will fall back on a JS based parser.
Peter Wagenet
2010-09-07 17:44:14
i hope the parser solution uses the code from json.org
Luca Matteis
2010-09-07 17:46:00
@Luca: It does :)
Peter Wagenet
2010-09-15 18:46:22