object.property returns undefined

My ajax success function returns response as {"allOrders":[0,0,0,0,0,0,0,0,0,0,0,27]}. I need to pass this allOrders into another function. So I tried t print the result in console, but it returns undefined.
I have tried like this

success:function(response){
{
    console.log(response.allOrders)     // returns undefined
}