Returning error message when JSON cannot be unmarshaled.