Exporting data between two neo4j databases

I have two neo4j databases. Database 2 should contain a subset of data from database 1; database 2 should then export that data to json.

What is the best way of moving data (that's not a database dump) between two neo4j databases? Unfortunately exporting to a .csv file takes ages and seems very clunky.