Output valid JSON for multi-domain CLI commands

I'm using this output now, and having different JSON schema for multiple vs single domains is annoying bc I have to have if/else everywhere. But I also think that always returning the same schema `{<domain1>: {stuff}}` feels weird.