Output valid JSON for multi-domain CLI commands

Is there a better method than this? toString() will return `helios (srv: ash)`.