XMLHttpRequest
From python file: Write JSON data in URL. In App Engine, this is done using
self.response.write(data)
From Javascript, make an XHR request as follows:
function getData() { var dataObject = new XMLHttpRequest(); dataObject.open('GET', 'URL', true); dataObject.send(); return dataObject; }
This will return an XMLHttpRequest object with the data in the string in the response or responseText attribute.
source share