How to save the output of AnalyzeResult Class object to a JSON file

prateek 10 Reputation points
2023-10-05T19:32:07.0533333+00:00

I'm following the code in the below link but unable to save the output of result = poller.result() to a JSON file.

output_json = json.dumps(result)
output = result.as_dict()

https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/quickstarts/get-started-sdks-rest-api?view=doc-intel-3.1.0&viewFallbackFrom=form-recog-3.0.0&preserve-view=true&pivots=programming-language-python#general-document-model

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,504 questions
{count} votes