Now that T198758 has been implemented, admins are able to edit gadget json pages, with MediaWikiGadgetDefinitionRepo. However, GadgetDefinitionNamespaceRepo uses a single gadgets-edit right for all files in the namespace.
Ideally, there should be a different user right for json, so that it can be given to admins rather than just interface-admins.