Vidyalelo
JavaScript · Q13

Parsing, Benchmarking And Logging

Programming · JavaScript · question 13

Q13

What is the purpose of the url json?

A.
Belongs to JSON object
B.
Reference JSON formatted data
Answer
C.
Belongs to JSON
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The URL JSON is assumed to reference a file of JSON-formatted data. The value passed to the callback is the object obtained by parsing the URL contents with jQuery.parseJSON(). jQuery.getJSON() uses this type. If the type is “json” and the URL or data string contains “=?”, the type is converted to “jsonp”.