Allow overriding toJSON in response.
Minor change.