Manual:$wgNamespaceContentModels

Details
Associative array mapping ns>Special:MyLanguage/Manual:Namespace|namespace IDs to the name of the handler>Special:MyLanguage/Manual:ContentHandler|content model pages in that namespace should have by default (use the ContentHandlers>Special:MyLanguage/Manual:$wgContentHandlers|  constants).

If no special content type is defined for a given namespace, pages in that namespace will use the   (except for the special case of JavaScript and CSS pages).

JSON
Suppose you have 1>Special:MyLanguage/Manual:Using custom namespaces|created a new custom namespace   and you want all new pages in this namespace to have JSON content and to be supported by the appropriate content handler.

Add the following to your LocalSettings.php file.

$wgNamespaceContentModels[NS_JSON] = CONTENT_MODEL_JSON;

If you already created pages in this namespace, 1>:|see the talk page.