exporting document JSON as columns