Add json_decode for Content-Type: text/javascript responses