alertwill implicitly calltoStringonresp, which will be an object literal (how the JSON is parsed), and that value is "[object Object]"resp is no longer in JSON format, it is a Javascript Object. You do not need to use function like
jQuery.parseJSONanymore.If you want to see this Javascript Object, try
alert(JSON.stringify(resp));
If you want to see this Javascript Object, try alert(JSON.stringify(resp));
- use
console.log(resp)to view the data inside the objectuse
console.log(resp)to view the data inside the object
alertwill implicitly calltoStringonresp, which will be an object literal (how the JSON is parsed), and that value is "[object Object]"resp is no longer in JSON format, it is a Javascript Object. You do not need to use function like
jQuery.parseJSONanymore.
If you want to see this Javascript Object, try alert(JSON.stringify(resp));
- use
console.log(resp)to view the data inside the object
alertwill implicitly calltoStringonresp, which will be an object literal (how the JSON is parsed), and that value is "[object Object]"resp is no longer in JSON format, it is a Javascript Object. You do not need to use function like
jQuery.parseJSONanymore.If you want to see this Javascript Object, try
alert(JSON.stringify(resp));use
console.log(resp)to view the data inside the object
alertwill implicitly calltoStringonresp, which will be an object literal (how the JSON is parsed), and that value is "[object Object]"resp is no longer in JSON format, it is a Javascript Object. You do not need to use function like
jQuery.parseJSONanymore.
If you want to see this Javascript Object, try alert(JSON.stringify(resp));
- use
console.log(resp)to view the data inside the object