javascript与php对json的操作
一、JAVASCRIPT:
- 编码:
JSON.parse(str) - 解码:
JSON.stringify(obj)二、PHP:
- 编码:
json_encode($str) - 解码:
json_decode($obj,true)
分享题目:javascript与php对json的操作
转载来源:http://dvlbo.com/article/igeeps.html

JSON.parse(str)JSON.stringify(obj)
json_encode($str)json_decode($obj,true)