json字符串有两段大括号包含的部分怎么办? 15
格式如:{"list":[],"request_id":1210082175}{"list":[{"fs_id":3446617934,"path":"\/apps\/l...
格式如:
{"list":[],"request_id":1210082175}
{"list":[{"fs_id":3446617934,"path":"\/apps\/laipan\/\u65b0\u5efa\u6587\u4ef6\u5939","ctime":1368704917,"mtime":1368704917,"md5":"","size":0,"isdir":1},{"fs_id":278871928,"path":"\/apps\/laipan\/haha.mp3","ctime":1368599076,"mtime":1368599076,"md5":"e7ab31b538a793cf34372f1104011f50","size":2625077,"isdir":0}],
"request_id":1729354691}
如上,想取得第二个大括号内的数据怎么办?最好有PHP的方法,谢谢!
Array ( [list] => Array ( ) [request_id] => 1040611990 )
Array ( [list] => Array ( [0] => Array ( [fs_id] => 3446617934 [path] => /apps/laipan/新建文件夹 [ctime] => 1368704917 [mtime] => 1368704917 [md5] => [size] => 0 [isdir] => 1 ) [1] => Array ( [fs_id] => 278871928 [path] => /apps/laipan/沧海一声笑.mp3 [ctime] => 1368599076 [mtime] => 1368599076 [md5] => e7ab31b538a793cf34372f1104011f50 [size] => 2625077 [isdir] => 0 ) ) [request_id] => 1695237673 ) 展开
{"list":[],"request_id":1210082175}
{"list":[{"fs_id":3446617934,"path":"\/apps\/laipan\/\u65b0\u5efa\u6587\u4ef6\u5939","ctime":1368704917,"mtime":1368704917,"md5":"","size":0,"isdir":1},{"fs_id":278871928,"path":"\/apps\/laipan\/haha.mp3","ctime":1368599076,"mtime":1368599076,"md5":"e7ab31b538a793cf34372f1104011f50","size":2625077,"isdir":0}],
"request_id":1729354691}
如上,想取得第二个大括号内的数据怎么办?最好有PHP的方法,谢谢!
Array ( [list] => Array ( ) [request_id] => 1040611990 )
Array ( [list] => Array ( [0] => Array ( [fs_id] => 3446617934 [path] => /apps/laipan/新建文件夹 [ctime] => 1368704917 [mtime] => 1368704917 [md5] => [size] => 0 [isdir] => 1 ) [1] => Array ( [fs_id] => 278871928 [path] => /apps/laipan/沧海一声笑.mp3 [ctime] => 1368599076 [mtime] => 1368599076 [md5] => e7ab31b538a793cf34372f1104011f50 [size] => 2625077 [isdir] => 0 ) ) [request_id] => 1695237673 ) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询