I have a text file containing multiple valid json texts, something like this
{
"items": [
{
"id": "someID",
"vale": "someValue"
},
{
"id": "otherID",
"vale": "otherValue"
}
]
}
{
"items": [
{
"id": "yetAnotherID",
"vale": "yetAnotherValue"
},
{
"id": "lastID",
"vale": "lastValue"
}
]
}
but with many more items per json and many more json's.
My attempt to read it (not surprisingly) failed:
import os
import json
jsonFile = open(jsonName)
jsonList=json.load(jsonFile)
Any sugestions to get the concatenation of all lists in a python object?