{
"status": "1",
"error": "",
"result": {
"payment": {
"issue_date": "2017-01-18",
"payment_status": "Not Paid",
"name": "GYM Master - GYM Management System",
"address": "address",
},
"receiver": {
"first_name": "Gauang",
"last_name": "vyas",
"address": "ldrp",
}
}
}
答案 0 :(得分:0)
PHP具有用于编码/解码JSON的本机函数
json_encode
json_decode
它接受数组和对象以便您的便利。
示例:
$data = array(
'status' => 1,
'result' => array(
'example' => 'example...'
)
)
json_encode($data)
这将导致:
{
"status":1,
"result":{
"example":"example..."
}
}