Hi is it possible to save json at client side? For example see below code, obj object is modified on each click and I want to save this modified object as json at user machine, which user can load back later on.
I want this specific solution,as the data I am going to save will be huge. Cookies(as it will get lost if user cleans browser) and HTML5 local storage is not an option(due to 2.5MB to 10MB, varying with browser). The data I am going to save will be base64 images. If user saves 50 or more images, 10 MB is a small size.
This question is not duplicate, at least not of Maximum size limits of local storage. As data requirement in my problem is already surpassing, max local storage of various browser. Moreover this local storage various with browser, so the amount of data user can save will be varying across browser, which is not desired.
var obj=[{name:"Some Init data"}];
/*
this function adds new data based on html form fields to this obj object
*/
function someFunctionOnClick(){
obj.push({name:"some other data from some other html field"});
}
/*
Want to save this object: obj object as json on client machine,
so that he can use my app even offline, just by loading JSON back stored
locally on his machine
*/
function saveThisJSONLocallyOnClientSystem(){
var data=JSON.stringify(obj);
}