I have a json which comprises like this.
[
{
"bi-document-identifier": "USA",
"text": "I found somwthing Interesting",
"relation_type": "ImportanceRelation",
"annotation_type": "Opinionholder",
"relation_start": {
"annotatedtext": "We",
"annotatedtext_represents": "OpinionHolder",
"annotatedtext_startposition": 146,
"annotatedtext_endposition": 148
},
"relation_end": {
"annotatedtext": "information",
"annotatedtext_represents": "StanceTarget",
"annotatedtext_startposition": 239,
"annotatedtext_endposition": 250
}
},
{
"bi-document-identifier": "USB",
"text": "This is quite new to me",
"relation_type": "ImportanceRelation",
"annotation_type": "Opinionholder",
"relation_start": {
"annotatedtext": "Dr. A_PERSON",
"annotatedtext_represents": "OpinionHolder",
"annotatedtext_startposition": 0,
"annotatedtext_endposition": 12
},
"relation_end": {
"annotatedtext": "MOA of CV risk reduction",
"annotatedtext_represents": "StanceTarget",
"annotatedtext_startposition": 29,
"annotatedtext_endposition": 53
}
}
]
how to read as a multi header dataframe. The orient and typ options in pandas.read_json() give me some errors like below
TypeError: list indices must be integers or slices, not str