Allow subclasses to add properties to the JSON for exceptions.