Tuesday, May 22, 2012

How to reuse JSON Object

Scenario:



The MVC web page gets JSON object with lots of data. Upon click of button (there are quiet a number of buttons) I would like to reuse this JSON object and select required JSON Properties (without making a request to server).



It's not HTML5 so can't use browser local storage. At the moment I'm storing the JSON object on GLOBAL variable and reusing it.



Are there any elegant options available to store and re-use returned JSON object on client side?





1 comment: