Reputation: 11
I'm using JSON.parse
function to load info about a cellset. I'm testing how much data is possible to fetch in one call.
The eval function starts throwing "out of memory" between 1.3-1.4 million characters (65,000-70,000 cells) in the JSON string. Does anybody know of a workaround for this - perhaps a pure JSON parser, rather than eval?
Thanks, Nathan
Upvotes: 1
Views: 1417
Reputation: 38740
You are definitely pushing way too much information to your client.
Possible workarounds:
Upvotes: 1
Reputation: 1178
I would recommend this one: http://json.org/js.html it's efficient.
Upvotes: 1