As discussed on the Advisory Board mailing list, assigning the "JSON" content model to our configuration files in Meta would enable (1) the code editor (instead of the wiki editor), and (2) a cleaner box visualization of these JSON files. This is currently the case with our configuration files in the "User" namespace, which are used by the sandbox endpoint of Web2Cit-Server.
Is there a way we can make all files following the pattern Web2Cit/data/**/*.json be assigned the "JSON" content model?
Is this how files ending in .json are assigned the "JSON" content model in the "User" namespace, whereas those ending in .js are assigned the "JavaScript" content model?
We have asked these questions here.
Note that JSON5 and YAML files (T302694) may not be supported equally. As stated in the mailing list thread mentioned above:
On the other hand, we have an open task to natively support JSON5, a format that supports comments. Even though this seems to be supported by Ace, the task to support this in MediaWiki's code editor is still unresolved (T127682).
Regarding YAML, it seems to be supported by Ace, but it doesn't seem to be supported by mediawiki code editor. However, if we manage to have the content model of our json configuration files set to "JSON", then the possibility of using the code editor, and the excellent box formatting, may make using YAML less useful.