js-syntaxerror:json.parse:unexpected character at line 1 column 2 of the JSON data jquery-1.9.1.min.js:3:4315

Source: Internet
Author: User

FF occasionally reported this mistake, the nearest section to do the project, it is generally I get the parameters in the form through jquery (or directly get parameters, and through Ajax asynchronous request, if there is a mistake, hold the error!)

The corresponding, if in Google Chrome, will be reported: uncaught syntaxerror:unexpected Token <

I think Google Chrome's mistake is a bit inaccurate.

Although the error in the topic is very broad, but the nearest paragraph to do the project, is roughly the case.

In fact, there are many types of "error request Parameters": include: the Accept or request parameter in Struts2 's action does not correspond, or there is no corresponding Getter/setter method. And so on.

js-syntaxerror:json.parse:unexpected character at line 1 column 2 of the JSON data jquery-1.9.1.min.js:3:4315

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.