I have this code in python 3
import json
with open('calldb.json', 'r') as G:
data = json.load(G)
print(data)
and this json file
[
{
"n": {
"identity": 0,
"labels": [
"Service",
"Test"
],
"properties": {
"name": "Service1",
"uid": "XD2020",
"state": "new",
"type": "internetDualhome"
}
}
},
{
"n": {
"identity": 1,
"labels": [
"Test",
"intpe"
],
"properties": {
"name": "Pe1",
"ip": "172.20.20.1/32"
--------skipped lines-----------
those omitted lines are for not sharing the entire file
when i run the program i get this error
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
what is the problem with this json?