def METHOD_NAME(self, data):
    try:
        return json.loads(json.dumps(data, sort_keys=True, cls=AnsibleJSONEncoder))
    except Exception:
        return {'warnings': ['JSON Formatting Issue', json.dumps(data, sort_keys=True, cls=AnsibleJSONEncoder)]}