json manipulation in javascript code example
Example 1: create a json object in javascript
var employee = {
"firstName": firstName,
"lastName": lastName
}
Example 2: html working with JSON data
superHeroes.homeTown
superHeroes['active']
Example 3: html working with JSON data
superHeroes['members'][1]['powers'][2]