如果正确使用JSON,则可以嵌套对象而不会出现任何问题:
var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance var theUrl = "/json-handler";xmlhttp.open("POST", theUrl);xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");xmlhttp.send(JSON.stringify({ "email": "hello@user.com", "response": { "name": "Tester" } }));


