Can now read new json format which specifies ports.