My question is quite simple.
I'm saving the data to local storage as string with JSON.stringify(data_object) and using JSON.parse(loaded_data) after load it back.
What is the best way to keep data on local storage? Save it in string format or as object? There are some difference is these approaches?
Thank you.
localStorageonly stores strings. You have to JSON encode/decode an object to store it inlocalStorage.