I'm trying to extract a sentence in a .json file.
but there are many overlapping words so It's kind of difficult.
For example:
"inferText":"this is content that I want to extract\nblahblah...\n","inferConfidence":0.99949986,"subFields":[
{"boundingPoly":{"vertices":[{"x":133.0,"y":250.0},{"x":237.0,"y":250.0}
{"x":237.0,"y":284.0},{"x":133.0,"y":284.0}]},"inferText":"blahblah","inferConfidence":0.9994,"lineBreak":false},
{"boundingPoly":{"vertices":[{"x":244.0,"y":251.0},{"x":322.0,"y":251.0}, .....
so I tried this code but there are so many "inferText" and "inferConfidence"
infer = re.findall(r'inferText.+inferConfidence', readline)
How can I solve? help!