using JSON.stringify in local storage

javascript scientifists!
How can I use JSON.stringify and JOSN.Parse in Local Storage sothat I dont have problems.
please give me an example!
I am a problem with my code where browsers are not updated I cant pass an array to local storage as value of my keys.