I\'m trying to get data from data.php via jQuery ajax call.
data.php
My code looks like this:
var jsonData; $.ajax({ url: \'data.php\',
Try to put dataType: 'json' in you ajax call:
dataType: 'json'
var jsonData; $.ajax({ url: 'data.php', dataType: 'json', success: function(response) { jsonData = response; } });