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"
}
} |
|
|
|
|
| |
|
|
|
|
 |
| |
|
| 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 |
|
 |
| |
|
|
 |
| |
|
|
 |
| |
|
|
 |
| |
|
|
| |
|
|
|