0

Please note; everything I'm doing here is local. I've been looking for and testing ways to write to a JSON from a JS file using jQuery. I've found ways that use PHP, but I'm not fluent in PHP and would rather stay away from it for now.

Is there any function in jQuery, or JavaScript, that can let me easily write to JSON files?

Thanks in advance, Benjamin.

Benjamin
  • 13
  • 3
  • It cant be don't in browser environment. If you want to do that outside of browser, check what nodejs can do – Andrey Saleba Mar 31 '17 at 04:40
  • See [Edit, save, self-modifying HTML document; format generated HTML, JavaScript](http://stackoverflow.com/questions/30563157/edit-save-self-modifying-html-document-format-generated-html-javascript?) – guest271314 Mar 31 '17 at 04:59

1 Answers1

0

If you are going with browser then it will not work in any way. If you are using nodejs on local system then you can do it with nodejs. With only remote side script it is not possible. With javascript running in browser you can only perform browser based task.

mandeepsinghn
  • 94
  • 3
  • 9