java zero to one: Ajax - 2: json and sends a synchronization request

What 1.json Shi?
        Javascript Object Notation
               json technology borrowed from a grammatical javascript creating an object
           (javascript object notation), so the technology named json.
           json is a lightweight data exchange technology standards.

        1) Data exchange:

                     Converting the data to be exchanged into a platform-independent format standard data
             transmission to the other party.

        2) Lightweight:
                     There are relative to xml, json using two advantages, first, a smaller amount of data, in addition,
               to resolve faster.


2. The basic syntax
       (1) represents an object using json
               {property name: property value, the property name: Property Value ...}
               Note:
                      attribute name must be quoted.
                      The data type of the attribute value can be string, number, boolean, null, object.
                      If the property value is string, you must use quotation marks.

               For example:
                      { 'name': 'ZS', 'Age':} 22 is

       (2) represents an array of json objects of
               [{}, {}, {} ...]
                        For example:
                           [{ 'name': 'ZS', 'Age': 22 is}, { 'name': 'WW ',' age ': 22} ]

 

3. How

Guess you like

Origin blog.csdn.net/kerryqpw/article/details/104085122