<?
//通过输入端来获取数据
$body
=
file_get_contents
(
'php://input'
);
echo
"--- 获取到的原始数据--- "
.
;
//解析数据
$json
= json_decode(
"--- 解析数据---"
"name:"
->{
'name'
};
"age:"
'age'
?>