Document Ai to csv document

Hi,

I am using Document AI to extract data from a pdf file. However, the result is a json file. What can I do to get a csv file?

Thank you

Good day @user1234 ,

Welcome to Google Cloud Community!

If you have a response that is a table similar to HTML table structure (You can check the sample JSON representation of the table using this link: https://cloud.google.com/document-ai/docs/reference/rest/v1/Document#table)
It is possible to use the Document AI Toolbox which is an SDK for Python used to manipulate and manage the document response, it can help you convert the response to Pandas CSV file. You can check this sample code: https://cloud.google.com/document-ai/docs/samples/documentai-toolbox-table#code-sample

Hope this helps!