fixed json file output