Friday 10, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

  A sample JSON definition

JavaScript Object Notation, has become a popular alternative to XML for defining structured data using JavaScript.
In strict JSON:
  • All string values must be in double quotes (single quotes won't do).
  • The name portion of each name/value pair must also be in double quotes.
  • The value of a property cannot be a function or method.
If your JSON data is not valid strict JSON, it will trip up certain JSON parsers, most notably, the JSON object of JavaScript. So make sure your data is valid syntax wise.

Here is an example of JSON that stores information about a person.
Cut & Paste Script
{
 "name": "Allen Kooper",
 "age": 37,
 "occupation": "Programmer",
 "contact":{
  "address": "253 Johnson Road",
  "Home_Phone": "123-3456-678",
  "Cell_Phone": "122-3455-777"
 }
}
 
   
     RELATED SCRIPTS
 
Drop Down World Clock Using JavaScript
Look up the time of various cities around the world easily with this useful script! Configurable to use cities of your choice....more »
Category : JavaScript Examples Hits : 454
   
JavaScript Sequential fly-in text script
This script flies in multiple text from the left edge of the window, one at a time in sequential order similar to a PowerPoint effect. It's versatile enough to handle any number of text (or other rich HTML like images!), and you can customize both the animation speed and pause between each messa...more »
Category : JavaScript Examples Hits : 490
   
Add Input Fields Dynamically using JavaScript
Use this script to upload files. As a file is selected, another input field is automatically added....more »
Category : JavaScript Examples Hits : 414
   
Google Internal Site Search Script
This script will enable you to search within a site using Google search....more »
Category : JavaScript Examples Hits : 915
   
Launching the print dialog box using javascript
Here is an example to launch the print dialog box using javascript....more »
Category : JavaScript Examples Hits : 430
   
   
SCRIPT CATEGORIES
 
  C Programs
C Programs scripts
  C++ Programs
C++ Programs scripts
  Java Programs
Java Programs scripts
  JavaScript Examples
JavaScript Examples scripts
  PHP Examples
PHP Examples scripts
  VBScript Examples
VBScript Examples scripts
 
 
 
POPULAR E-BOOKS
 
Download Save 100 s on Your Phone Bill The Savvy Consumer s Guide to Voip  Ebook Save 100 s on Your Phone Bill The Savvy Consumer s Guide to Voip
   
Download Introduction to Interactive Programming In Java  Ebook Introduction to Interactive Programming In Java
   
Download Top SEO Secrets  Ebook Top SEO Secrets
   
Download Marketing Your Music  First Steps Ebook Marketing Your Music First Steps
   
Download Algorithms in the Real World: Lecture Notes  Ebook Algorithms in the Real World: Lecture Notes
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz