call callback if json parsing fails