Fix json format of method specs.