Fixed bad json parsing error message to be more verbose.