This happens when you make an AJAX call and specify jQuery jQuery jQuery jQuery dataType to answer it. In fact, you can specify which function to call depending on the data type, as you can from the documentation
Converters(added 1.5)
Map Default: {"* text": window.String, "text html": true, "text json": jQuery.parseJSON, "text xml": jQuery.parseXML} Map of dataType-to-dataType converters. each converter value is a function that returns the converted value response
So if you make such a call
$.ajax({ url: yoururl, dataType: "json", success: function(data){
If you did not specify dataType, jQuery tries to guess it
dataTypeString Default: Intelligent Guess (xml, json, script or html)
The type of data you expect from the server. If none, jQuery will try to derive it based on the MIME type of the response (the XML MIME type will give XML, in 1.4 JSON there will be a JavaScript object, in 1.4 the script will execute the script, and everything else will be returned as a string). Available types (and the result obtained as the first argument to your success callback):
"xml": returns an XML document that can be processed through jQuery.
"html": returns HTML as plain text; script tags are included when pasting into the DOM. "script": evaluates the response as JavaScript and returns it as plain text. Disables caching by adding a query string parameter, "= [TIMESTAMP]", to the URL if the option cache is set to true. Note. This will turn POST into GET for remote domain requests. "json": evaluates the response as JSON and returns a JavaScript object. In jQuery 1.4, JSON data is parsed in strict order; any rejected JSON is rejected and the parsing error is thrown. (See Json.org for more information on proper JSON formatting.)
"jsonp": loads into a JSON block using JSONP. Adds an extra "? Reverse =?" to the end of your url to specify a callback. Forbids caching by adding a query string parameter, "= [TIMESTAMP]", to the URL if the cache parameter is set to true.
"text": plain text string. multiple values โโseparated by spaces:
Starting with jQuery 1.5, jQuery can convert the data type from the value you need in the Content-Type header. For example, if you want the text response to be processed as XML, use "text xml" for dataType. You can also do JSONP if it received text and interpreted jQuery as XML: "jsonp text xml". Similarly, a string string such as "jsonp xml" will first try to convert from jsonp to xml, and, what, convert from jsonp to text, and then from text to xml.