c# - SyntaxError: JSON.parse: unexpected character error unexpected token < -
i have html button "button-account" name in html body , want update aspx page ajax when user click button i error in google chrom syntaxerror: json.parse: unexpected character and in fire fox syntaxerror: json.parse: unexpected character here's code <script type="text/javascript" > $(document).ready(function () { $("#button-account").bind("click", "accountregister"); function accountregister() { var waitobj = "<span class='wait' > <img src='resource/images/loading.gif' alt='' /> </span>"; var user = $("[name='username']").val(); var pass = $("[name='password']").val(); var dataobj = { "username": user, "password": pass, }; $.ajax({ type: "post", ...