Support exporting relationship fields, export deleted records, and export as JSON