json map 解析
我 ajax 从后台返回的 数据是这样的。{"user1":{"password":"111111","username":"好人"},"user2":{"password":"222222","username":"坏人"}}
我前台该怎样解析它 json
[解决办法]
jQuery.parseJSON('{"user1":{"password":"111111","username":"好人"},"user2":{"password":"222222","username":"坏人"}}');
[解决办法]
后台转成字符串啊
JSONObject.fromObject(map).toString()