I am trying to understand JSON, and could use a little help.

So, if I have something like:

 {
     "firstName": "John",
     "lastName": "Smith",
     "address": {
         "streetAddress": "21 2nd Street",
         "city": "New York",
         "state": "NY",
         "postalCode": 10021
     },
     "phoneNumbers": [
         "212 555-1234",
         "646 555-4567"
     ]
 }

How would I use jQuery to write the values onto a page?  And how do
you go the other way, taking values and serializing them into JSON to
be sent to the server?

Thanks!

Reply via email to