JSON api to iterate over filenames (state does not persist on disk)