I am saving an object in a JQuery $.cookie using the following code:
var contactData = { Name: 'Michael',
Age: 29
};
$.cookie("contact", $.param(contactData), { expires: 20 });
and I was wondering how I can access the Age and Name saved in $.cookie? Thanks
NOTE: This question is not a duplicate of the question mentioned above. I sincerely believe that those who marked it as duplicate for this question didn't take a moment to read the question and understand it in full. My Question is not about saving / reading from $.cookie, it is rather about reading specific property of json saved in the cookie. For example reading the Name only or Age only but not both