Script now generates JSON files