I am interested in exporting a subset of values from a MySQL database into a JSON-formatted file on disk.
I found a link that talks about a possible way to do this:
Also, If you are exporting in application layer don't forget to limit results. For example if you've 10M rows, you should get results part by part.