save peers config to json