I need to save a Javascript object to a file, so it can be easily reloaded into a variable, modified and eventually re-saved. Is this feasible in Javascript and if so what's the best way to approach it. For example if I have:
o = {"test": 2};
How can I save it to a file, load, modify and save it? Exactly like pickle in Python.
Thanks.