def parse_acl_v2(data):
 if (data is None):
  return None
 if (data is ''):
  return {}
 try:
  result = json.loads(data)
  return (result if (type(result) is dict) else None)
 except ValueError:
  return None

def parse_acl_v2 ( data ) : if ( data is None ) : return None if ( data is '' ) : return { } try : result = json . loads ( data ) return ( result if ( type ( result ) is dict ) else None ) except ValueError : return None
parses a version-2 swift acl string and returns a dict of acl info .