Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sproutcore and JSON Data

How can i read JSON data in Sproutcore?

like image 512
femi Avatar asked Aug 19 '10 12:08

femi


1 Answers

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.

like image 130
Peter Wagenet Avatar answered Oct 01 '22 13:10

Peter Wagenet