Save as a json file
Tue May 10 2022 18:57:46 GMT+0000 (Coordinated Universal Time)
Saved by
@CarlosR
import json
response = textract.analyze_document(Document={'Bytes': imageBytes},FeatureTypes=["FORMS"])
json_invoice_test = json.dumps(response)
with open("json_invoice_test1.json", 'w') as outfile:
outfile.write(json_invoice_test)
with open("json_invoice_test2.json", 'w') as outfile:
json.dump(response, outfile)
content_copyCOPY
Comments