Requesting with the following HTTP header returns JSON:
X-Requested-With: XMLHttpRequest
You can try it for yourself with CURL:
curl "https://meta.discourse.org/tags" -H "X-Requested-With: XMLHttpRequest"
Although supporting the “.json” extension would make it the same as many other endpoints.