Adding check box to toggle between JSON and JSONP data types