Unlike jQuery in order to read raw JSON you will need to decode it in PHP.print_r(json_decode(file_get_contents("php://input"), true)); php://input 是只读流,允许您从请求正文中读取原始数据.php://input is a read-only stream that allows you to read raw data from the request body. $ _ POST 是表单变量,您需要在 postman 中切换到 form 单选按钮,然后使用:$_POST is form variables, you will need to switch to form radiobutton in postman then use:foo=bar&foo2=bar2要使用 jquery 发布原始的 json :$.ajax({ "url": "/rest/index.php", 'data': JSON.stringify({foo:'bar'}), 'type': 'POST', 'contentType': 'application/json'}); 这篇关于使用Postman通过原始JSON发送POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!