So, I tried creating a JSON page but I cannot assign a page to the template as the template simply doesn’t show up in the admin panel or is recognized when loaded otherwise…
JSON is not a template as such, rather a rendering method for API’s. Any page with a corresponding .json-template, like blog.html.twig and blog.json.twig, can be access by appending
.json to the end of the URL, to return it formatted as JSON.
Thus you do not create the page as JSON, but rather offer it in JSON as well.