Use new variable json_dir to store JSON files