Added methods to dump records as dictionaries or json strings