Fixed json serialization of cnxns