[jQuery] $.post() response dataType
Hi,
is $.post() always returning string as response data?
$.post(url, { param1: value, param2: value }, function(data) {
alert(typeof data); --> string
}
Even if the data is JSON?
Do I have to use $.ajax() instead?
Thanks for your help.
Bohdan