Add JSON output for GetTypes
Minor formatting fix