indexes files from JSON batches