How to keep an up to date JSON file of all metadata in my library?

I it not possible to export a separate (json) file per file.
Per directory it is feasible for sure.
Maybe the JSON extract combines all json files per directory and then you split them (you can surely automate it). Or have a look at splitter thread below.