Hi,
I've written a perl cgi script to fetch the data from DB and then convert it into JSON format.
And also I've prepared a Javascript for the same which contains AJAX call that will get the JSON fetched by CGI. The issue which I am facing is that when I try to print the json data fetched by the perl script some dummy HTML is getting printed i.e invalid json.
I've configured IIS also for the same and when I hit the path of the script from Browser I am actually getting the correct data. For Verification I've copied the json which is on the browser and verified it on JSONLint.com it is showing VALID JSON.
I need help , Can Someone please guide me whether I am on the right track or not ?
Have I missed Something ?
Thanks in Advance!
T.S. : 7.4.1
Perl : perl 5 version 18 (strawberry)