
James G. answered 05/16/18
Tutor
4.9
(1,012)
Tutor
JSON stands for JavaScript Object Notation. It is a widely used data exchange format based on the syntax used for objects and arrays in JavaScript (Dictionaries and lists in Python).
A good way to understand this notation would be to look at the way dictionaries and lists can be combined to represent data.
If you have JSON data in a file and want to use it in your program a good way to start is to import json.
For example:
import json
aFile = open("myData.json")
data = json.load(aFile)
If all goes well "data" will contain a representation of the JSON data in the form of dictionaries and lists.