Trying to set cookie in js using stringify() with added lib json2.js
var data = {
fields: fields,
rows: rows,
data: rows
};
Tried like below :
$.cookie("instant_view", JSON.stringify(data)); //instant_view as cookie name
but could not get any cookie (trying find the cookie name through firefox view cookie info)
also tried for
var json_str = JSON.stringify(data);
$.cookie('mycookie', json_str);
Still, unable find or set the cookie name.