Send Wav file from js to flask. Why does it have to return? What is the deepest Stockfish evaluation of the standard initial position that has ever been done? How to loop over a list from Flask in Javascript? But avoid . How do I remove a property from a JavaScript object? user name during registration, or message text, or something else), and this code can steal cookies/sessions, etc. next step on music theory as a guitar player. Flask is a Python micro-framework for web development. application is served. If you want to return another JSON type, use the There is a security issue in this solution (possible arbitrary javascript code injection) due to the lack of escaping of single quote character. I'm curious to get clarity about the security vulnerability point raised by @Ilya V. Schurov ("this single quote will not be escaped by json.dumps, thus allowing to inject arbitrary code into javascript"). Who receives the return? Sending JSON data just means sending a string, and telling the API what the string represents. If the letter V occurs in a few native words, why isn't it included in the Irish Alphabet? Read the linked MDN docs for more information about libraries, such as XMLHttpRequest() or jQuery. The steps below are what I did : I first got my data from postgreSQL in Python. How do I include a JavaScript file in another JavaScript file? Not the answer you're looking for? For example I have used a dictionary data in the following example. How to help a successful high schooler who is failing in college? tojson() filter in a