use json to store object in sessionStorage