Change peerlist file to json file.