I am looking for a way to transfer raw files of any type of file with any possible content (by which I mean that the files and contents of the file are all generated by the user) in both directions using xhr / ajax calls in the front-end baseline with Django back-end.
EDIT: Maybe the question is still unclear ...
If you open the file in an IDE (for example, Sublime), you can view and edit the actual code containing this file. I am trying to put this content in JSON so that I can send it to the browser, it can be changed and then sent back.
I posted this question because I got the impression that because the contents of these files can effectively be in ANY encoding language that just builds the content and sends it, it seems like a fragile solution, it would be easy to break or use. Content may contain any number of characters ', ", {and }that would seem to violate the JSON format, and screening of these characters would leave artifacts in the code that could effectively break them (right?).
If this assumption is incorrect, THAT will also be an acceptable answer (for now, you could point out that I do not notice).
, , IDE, . / , , . / ajax/xhr.
- "" . .
- - .
- . save/fetch / , .
, Underscore/jQuery, , , - , .