JavaScript
Article

Example Customer Form JSON File

By Sam Deering

This is an example of a Customer Form JSON file which you might see used to store configuration settings to setup your system. It might also be used to contain record information which can be easily shared across components using the simple JSON format.

Also: See more JSON examples.

{
     "firstName": "John",
     "lastName": "Smith",
     "age": 25,
     "address":
     {
         "streetAddress": "21 2nd Street",
         "city": "New York",
         "state": "NY",
         "postalCode": "10021"
     },
     "phoneNumber":
     [
         {
           "type": "home",
           "number": "212 555-1234"
         },
         {
           "type": "fax",
           "number": "646 555-4567"
         }
     ]
 }
  • Greg

    would be cool to see some methods to chop/parse through complex json data!

Recommended
Sponsors
Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.