'Returns a pretty-printed JSON representation of the error.
Returns:
str: A JSON document for the error.'

def to_json(self):

    obj = self.to_dict(OrderedDict)
    return json.dumps(obj, ensure_ascii=False)
