When debugging, you often need to know the content of the json object. Through the JSON.stringify function, you can convert the json object into a string.
alert(JSON.stringify(msg)); <br>}, <br>success : function(msg) { <br>alert(JSON.stringify(msg)); <br>}) <br>})