finished json creation after every download