automatically generates output.json. Also, i'm exploring a way to prune without deleting information.