Use application/javascript. In that way, clients can rely on the content-type without having to manually check whether a response has padding or not.
More Related Contents:
- What is JSONP, and why was it created?
- AJAX cross domain call
- Post data to JsonP
- Javascript search inside a JSON object
- Not a Legal JSONP API — How to get data without CALLBACK parameter
- Changing getJSON to JSONP
- AJAX call and clean JSON but Syntax Error: missing ; before statement
- JSON string to JS object
- Cross-Origin resource sharing and file://
- Using JSONP to get JSON data from another server
- How to use JSON from instagram API?
- How do I iterate over a JSON structure? [duplicate]
- Traverse all the Nodes of a JSON Object Tree with JavaScript
- JSON datetime between Python and JavaScript
- Parsing JSON giving “unexpected token o” error [duplicate]
- How to get object length [duplicate]
- How to filter JSON Data in JavaScript or jQuery?
- How to convert the following table to JSON with javascript?
- Encrypt string in PHP and decrypt in Node.js
- how to change the headers for angularjs $http.jsonp
- How to solve Uncaught RangeError when download large size json
- Does Wikipedia API support CORS or only JSONP available?
- Make XmlHttpRequest POST using JSON [duplicate]
- JSON Parse File Path
- Hide certain values in output from JSON.stringify()
- Why does the jQuery JSON parser need double escaping for backslashes?
- jQuery uses (new Function(“return ” + data))(); instead of eval(data); to parse JSON, why?
- Access JSON or JS property using string
- Grouping JSON by values
- Iterate through nested json object array