add rule and test, reformat json file