03a JSON
03a JSON
What is JSON?
Example of a JSON
representing
information about a
book
JSON Syntax
“name” : “Rommel”
“school” : “CPU”
“college” : “College of Computer Studies”
JSON JavaScript
✘ keys must be strings, ✘ keys can be strings,
written with double numbers, or identifier
quotes names
JSON Values Vs JavaScript Values
✘ JavaScript object
✘ Convert to string
✘ Result
We’ve Covered
✘ Change the
displayed
name
✘ Prompt the
user for his
name and age
then display
the results