I have two JSON files that I am trying to load in python
queue.json
[
["Person 1", "B"],
["Person 2", "C"],
["Person 3", "A"],
["Person 4", "B"],
["Person 5", "C"],
]
and stock.json
{
"A": 5,
"B": 3,
"C": 10
}
I'm using this code to load in the stock file
import json
# Load the stock file.
stock = json.load(open("stock.json"))
but when I use this code to load in the queue file it says that no JSON object could be coded:
import json
# Load the queue file.
queue = json.load(open("queue.json"))