Is it a good idea to store json objects in local storage?

309 Views Asked by At

I've seen some sites store JSON objects in local storage. Is this practice common with ember-cli apps as well?

For example: the currentUser local storage key could have:

{"firstName": "foo", "lastName": "bar", "email": "[email protected]"}

Which can be set via localStorage.currentUser = JSON.stringify({firstName: "foo", lastName: "bar", email: "[email protected]"});

If above practice holds true. Are there any tools that facilitate manipulating data stored as JSON objects in local storage?

Is there an "Ember way" / convention I should consider?

0

There are 0 best solutions below