jdorn / json-editor

JSON Schema Based Editor
MIT License
5.8k stars 1.08k forks source link

Howto edit and save local JSON data #446

Open geekitude opened 9 years ago

geekitude commented 9 years ago

Hi

Loading a JSON schema to create a form is well described but I'm having a hard time trying to figure how to load existing data in the form (from an array or JSON file localized on the web server hosting JSON Editor) and then save the edited data back to an array or file (still on the same server).

Could anyone give me a few hints ? :)

Best regards

Mattes1000 commented 9 years ago

Hi, of course you need a server part to read/parse the file an then write it back. Or maybe the HTML5 FileReader API is a way to go...

geekitude commented 9 years ago

Thanks, I'll have a look at this :)