TypeError:jquery 1.9.1版本中的'operand obj'无效'

use*_*605 10 jquery

$.ajax({
    async: false,
    type: "POST",
    url: url+"module/listing/"+projectId,
    data: "ajax=true",
    success: function(response) {
        $.each(response, function(key, val) {
        alert(val.id);
        });
    }
});
Run Code Online (Sandbox Code Playgroud)

这是我的代码.Ajax成功我正在获得JSON响应.响应采用数组格式.我想提醒回应.但是获得"TypeError: invalid 'in' operand obj" JQuery 1.9.1版本的错误.

Ami*_*arg 10

success: function(response) {
        response=JSON.parse(response);
        $.each(response, function(key, val) {
        alert(val.id);
        });
    }
Run Code Online (Sandbox Code Playgroud)