返回json:
{
"BaseResponse": {
"Ret": 0,
"ErrMsg": ""
}
,
"Count": 11,
"ContactList": [{
"Uin": 0,
"UserName": "filehelper",
"NickName": "文件传输助手",
"HeadImgUrl": "/cgi-bin/mmwebwx-bin/webwxgeticon?seq=638861246&username=filehelper&skey=@crypt_597aeefd_4f4d3259876363ba00d71a6ca1a3bcbc",
"ContactFlag": 3,
"MemberCount": 0,
"MemberList": [],
"RemarkName": "",
"HideInputBarFlag": 0,
"Sex": 0,
"Signature": "",
"VerifyFlag": 0,
"OwnerUin": 0,
"PYInitial": "WJCSZS",
"PYQuanPin": "wenjianchuanshuzhushou",
"RemarkPYInitial": "",
"RemarkPYQuanPin": "",
"StarFriend": 0,
"AppAccountFlag": 0,
转换为数组:
$VAR1 = {
'ChatSet' => 'filehelper,@@79a99bc4c1e9455f9beb3ee925bf6585f07e4c0cb16bf114ea2b8d2abcf73366,@dda90f898e8ae3c00f64fd9bfaa41bbb11c7ab81e6a4fa43db52ad5cc8b17229,@0c58c77ab58040f485e92f3bf41210b3,@@2dbbaf22c03fd93d8c0a36b1874d771863e15f1aeda01a3659669134678a50d3,newsapp,@8334736d4366dd2462f06326c69947b3,weixin,@@0a73ca9bb446d378b0d1d14647b41cd85533233a44811f3b8374cfd3d1f622ad,@@f302b226faf7bdc9fa62fbdc92645b6ad9c336ff6d9f6a97a979e03f0d55c947,@@3f25a76a4436e929acabb8ad48b9b9c383471dc0a3d99dae2888e134b477fbd9,fmessage,@@86aa096e110b3c2f54b2e9c742749f54079436b5c060d9da0c01ee38f5d9fc0c,@@015361fb66bd88ccc1dbeba340553a6752d4a5bb092c214f1db40c3a6c137ef7,@@ae557b9efa5abbb664183a255ffb43b0cc5995bf9e20ceaf42d6aadf33482d41,@@49fbae83a45dd8c65e42f4d973db8253c125435260a126f49aa32b77a9d47aef,@@f7b9a87dc30eef8077153a3d08a6b82030a245010549aa21f77e16779499b515,@@d8eae627a83cc72add3f03360d058cc988a907729b1e5cb62c3ea9901a7d55fb,@100388f1d3d64bd75d732ac7406c9e38,',
'GrayScale' => 1,
'BaseResponse' => {
'ErrMsg' => '',
'Ret' => 0
},
'InviteStartCount' => 40,
'User' => {
'NickName' => "x{e8}x{b5}x{b5}x{e6}x{9d}x{a8}x{e5}x{81}x{a5}",
'HeadImgFlag' => 1,
'RemarkPYInitial' => '',
'Sex' => 1,
'UserName' => '@98402efc2539eb90516239f875560e268fb2e9fd3ac3f637470908a1c0c3cd6e',
'Signature' => '',
'Uin' => 1284510822,
'HeadImgUrl' => '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=1034307671&username=@98402efc2539eb90516239f875560e268fb2e9fd3ac3f637470908a1c0c3cd6e&skey=@crypt_597aeefd_4f4d3259876363ba00d71a6ca1a3bcbc',
'HideInputBarFlag' => 0,
'AppAccountFlag' => 0,
'PYInitial' => '',
'VerifyFlag' => 0,
'WebWxPluginSwitch' => 0,