Ошибка json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes:
import json
with open('filename.json', 'r') as f:
for line in f:
data = json.loads(line)
# здесь происходит
{
"NumberStat" : [
{
"ManNumDetection" : [
{
"AreaID" : 1,
"Channel" : 0,
"EndTime" : "2023-04-14 10:59:59",
"EnteredSubtotal" : 0,
"ExitedSubtotal" : 0,
"StartTime" : "2023-04-14 10:00:00"
}
],
"SN" : "6M0D6EFPAG24E66",
"Uploading Time" : "2023-04-14 11:00:49"
}
]
}
{
"NumberStat" : [
{
"ManNumDetection" : [
{
"AreaID" : 1,
"Channel" : 0,
"EndTime" : "2023-04-14 11:59:59",
"EnteredSubtotal" : 0,
"ExitedSubtotal" : 0,
"StartTime" : "2023-04-14 11:00:00"
}
],
"SN" : "6M0D6EFPAG24E66",
"Uploading Time" : "2023-04-14 12:00:49"
}
]
}