I am looking for a typical example where calling the jQuery function getJSON offers a large advantage over using standard AJAX functions (from jQuery or from native JavaScript).
I am looking for a typical example where calling the jQuery function getJSON offers
Share
It’s shorter. Basically .getJSON is just a shortcut for jQuerys
Which now you only do
The advantage over using plain AJAX should be fairly obvious as it is a lot less to type and takes care of all the annoying browser specific differences.