Is it possible to edit a JSON object stored on web local storage? Currently I have a stringified JSON object
{fname\":\"Jerry\",\"lname\":\"Lewis\",\"email\":\"Jl
You can do:
var myObj = JSON.parse(localStorage.getItem("yourKey")); myObj.fname = "Clyde"; //change fname to Clyde localStorage.setItem("yourKey", JSON.stringify(myObj));