原因: 1、本身JSON字符串不符合规范。 2、json_decode后面的参数没有设置为true。 解决: 1、规范化JSON字符串。 2、json_decode(JSON字符串, true); // 第二个参数为true