I want to load the JSON contents of a MediaWiki:Custom-*.json page for my script. I've seen ProfileTags's method by just getting the raw contents of a page and deserializing it. But is there a better way to do this, especially with JSON?
Rereading your original question - it's just fetching the raw content of the page either way. But JSON.parse it is simple enough so in most cases I don't think there's a need for anything more.