sessionStorage not storing original object
问题 I have an object which I'm getting by executing a function of SDK. When I try to store the object in session storage and the retrieve the object, the retrieved object looks same as original but when I perform operations on the new object I'm getting error. var xyzObject = some_function(); sessionStorage.setItem("xyzObject",xyzObject); var obj = JSON.parse(sessionStorage.getItem("xyzObject")); obj.some_other_function(); It is showing an error as obj.some_other_function is not a function.