JavaScript
Article
By Sam Deering

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!

  • Deji James

    Is it possible to have a JSON file of players and the price of each player (for example in a fantasy web-app). Further to this, is it possible to update the file each week to add stats and pricing to each player

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