The answers above work well if you only want to export one collection.
If you have many collections and want to export them all, there's a better way:
Wrench icon (top-right) -> Settings -> Data tab -> Export Data -> Download
This will create a single json file with all your collections.