How does JQuery transmit and parse data in Json format under Spring MVC framework? _ jquery

Source: Internet
Author: User
As a lightweight data exchange format, json occupies a very important position in front-end and back-end data exchange. Json syntax is very simple and uses the key-value pair representation. This article introduces how JQuery transfers and parses data in Json format under SpringMVC framework, if you are interested in springmvcajaxjson, learn about it. as a lightweight data exchange format, json occupies a very important position in front-end and back-end data exchange. Json syntax is very simple, using the key-value pair representation form. JSON can convert a set of data in a JavaScript object to a string, and then it can be easily transferred between functions, in an asynchronous application, you can also transmit a string in json format to the front end and explain it to the front end. This string conforms to the json syntax, while the json syntax is a subset of the javascript syntax, so javascript can easily interpret it, and JSON can represent a more complex structure than "name/value pairs. The following example shows how JQuery transfers/parses data in json format.

1. First, let's look at the front-end jsp code:

<% @ Page language = "java" contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %>   

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.