Using javascript to save XHR file
<p>I would like to save an JSON file which is requested on an after-login page with a POST request. Because there is no API available, I would like to download the response of an script called when loading the page as JSON file using Greasemonkey.</p>

<p>The page is like domain.com/map, which calls domain.com/map/script during the load: <code>&lt;script type="text/javascript" charset="utf-8"&gt; function open() {$.ajax{{ url: "/script", type: "POST", dataType: "json",), [...] }); }; function functionname(value){ [...] }; open();</code>. The response of domain.com/map/script is the actual JSON response I would like to save (locally or even better using FTP).</p>