creates now a json file for the output