2016/4/2 Lightweight Data Interchange Format examples in Json:js and jquery: Window popup Popwindow

Source: Internet
Author: User

JSON (JavaScript Object Notation) is a lightweight data interchange format. It is based on a subset of ECMAScript. JSON takes a completely language-independent text format, but also uses a similar idiom to the C language family (c, C + +, C #, Java, JavaScript, Perl, Python, and so on). These features make JSON an ideal data exchange language. Easy to read and write, but also easy to machine parse and generate (typically used to improve network transfer rates).

The JSON syntax is a subset of the JavaScript object representation syntax.
    • Data in key-value pairs
    • Data is separated by commas
    • Curly braces Save Object
    • Square brackets Save Array

Cases:

1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4     <MetaCharSet= "UTF-8">5     <title>Document</title>6 </Head>7 <Body>8     9 </Body>Ten <Scripttype= "Text/javascript"> One     varJSON={ A A:"Hello", - B:" World", - C:123, the D:array (1,2,3,4), - E:{AA:"JSON"} -     }//equivalent to an associative array - alert (a); + Alert (json.d[0]); - alert (JSON.D); + alert (JSON.E.AA); A </Script> at </HTML>

Figure:

Pop-up window:

2016/4/2 Lightweight Data Interchange Format examples in Json:js and jquery: Window popup Popwindow

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.