Catalytic properties of a cobalt metal-organic framework with a zwitterionic ligand synthesized in situ.