that's not right, it's something you have to do to the server not the content.
if you google something like 'add json mime type' along with the type of your web server (e.g. apache or IIS) you should get the answer.