def dump_record_json(marcxml):
try:<EOL><INDENT>from invenio.modules.records.api import Record<EOL>d = Record.create(marcxml, '<STR_LIT>')<EOL>return d.dumps(clean=True)<EOL><DEDENT>except ImportError:<EOL><INDENT>from invenio.bibfield import create_record<EOL>d = create_record(marcxml, master_format='<STR_LIT>')<EOL>return d.dumps()<EOL><DEDENT>
Dump JSON of record.