def to_nice_json(a, indent=4, *args, **kw):
 if (sys.version_info < (2, 7)):
  try:
   import simplejson
  except ImportError:
   pass
  else:
   try:
    major = int(simplejson.__version__.split('.')[0])
   except:
    pass
   else:
    if (major >= 2):
     return simplejson.dumps(a, indent=indent, sort_keys=True, *args, **kw)
 try:
  return json.dumps(a, indent=indent, sort_keys=True, cls=AnsibleJSONEncoder, *args, **kw)
 except:
  return to_json(a, *args, **kw)

def to_nice_json ( a , indent = 4 , * args , ** kw ) : if ( sys . version_info < ( 2 , 7 ) ) : try : import simplejson except ImportError : pass else : try : major = int ( simplejson . __version__ . split ( '.' ) [ 0 ] ) except : pass else : if ( major >= 2 ) : return simplejson . dumps ( a , indent = indent , sort_keys = True , * args , ** kw ) try : return json . dumps ( a , indent = indent , sort_keys = True , cls = AnsibleJSONEncoder , * args , ** kw ) except : return to_json ( a , * args , ** kw )
make verbose .