javascriptpythonjsonstorageofflineapps

How to read and write JSON offline on local machine?


Problem

I need a way to store and collect JSON data in an entirely offline(!) web application, hosted on a local (shared) machine. Several people will access the app but it will never actually be online.

I'd like the app to:

Solution?

My first thought was to let the html5 file API, just read/parse and write my JSON object to a local txt file, but this appears not to be possible?!

Local storage is not applicable here right, when several people - each with their own browser - need to access the html?

Any ideas?

note

I know this topic is not entirely novel, but I think my situation may be slightly different than in other threads. And I've spent the better part of the last couple hours googling this and I'm none the wiser..


Solution

  • Have you considered Python's Json module? http://docs.python.org/2/library/json.html

    Using this you can convert python objects to and from json strings. You can store the strings however you want to