JavaScript mode supports a single configuration option, json, which will set the mode to expect JSON data rather than a JavaScript program.
json
MIME types defined: text/javascript, application/json.
text/javascript
application/json