See https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&indexpageids=1&siprop=usergroups
For admins: add and remove are arrays of group names
For crats: objects with non-sequential keys
"add": { "1": "accountcreator", "2": "sysop", "3": "interface-admin", "4": "bureaucrat", "5": "bot", "6": "confirmed", "7": "copyviobot", "8": "reviewer" }, "remove": { "0": "ipblock-exempt", "1": "sysop", "3": "accountcreator", "4": "bot", "5": "confirmed", "6": "interface-admin", "7": "copyviobot", "8": "reviewer" }
Potential cause: T245716: InitialiseSettings: don't let enwiki crats add/remove flow-bot - the api result is different from the actual $wgAddGroups and $wgRemoveGroups from crats, and the alteration of the list of groups could result in the different format