1var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance
2var theUrl = "/json-handler";
3xmlhttp.open("POST", theUrl);
4xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
5xmlhttp.send(JSON.stringify({ "email": "hello@user.com", "response": { "name": "Tester" } }));
6