Sep-28-2017, 04:08 PM
it's not all commas, just the ones before each closing
}
, e.g.Output:[
{
"primaryAdmin": "padmin",
"passwordExpiryDate": 1549837845656,
"loginName": "test1",
"loginLive": true,
"lastSetDate": 1486679445656,
"loginCat" : "TESTCAT",
"contactEmail": "[email protected]",
"genreName": "Trailblazer",
"secondaryAdmin": "sadmin",
"contactName": "Test Contact",
"lastLoginTime" : 1486765411722,
"peEnabled" : true
},
{
"primaryAdmin": "padmin2",
"passwordExpiryDate": 1549837845656,
"loginName": "test2",
"loginLive": true,
"lastSetDate": 1486679445656,
"loginCat": "TESTCAT",
"contactEmail": "[email protected]",
"genreName": "Trailblazer",
"secondaryAdmin": "sadmin2",
"contactName": "Test Contact2",
"lastLoginTime": 1486765411722,
"peEnabled" : true
}
]
in order to use json module you need to clean the file. depending on file size and your RAM you may do this in memory - i.e. read the file in a string, clean it and then load the string with json. If the file is BIG, you may have to reprocess the file.