views:

51

answers:

1

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
i hope the parser solution uses the code from json.org
Luca Matteis
@Luca: It does :)
Peter Wagenet