Add possibility to error messages that can be parsed as json objects, e.g. similar to what Spring boot does.