def METHOD_NAME(inst, basedn, log, args):
    if args.details:
        # List SASL mappings with details
        mappings = SaslMappings(inst).list()
        result = {"type": "list", "items": []}
        for sasl_map in mappings:
            if args.json:
                entry = sasl_map.get_all_attrs_json()
                # Append decoded json object, because we are going to dump it later
                result['items'].append(json.loads(entry))
            else:
                log.info(sasl_map.display())
        if args.json:
            log.info(json.dumps(result, indent=4))
    else:
        _generic_list(inst, basedn, log.getChild('sasl_map_list'), MANY, args)