Implement export repository as JSON