結果 : write output to a json file in python