Hello
“I trained a custom model using Azure Document Intelligence AI Studio. I was able to extract data from a PDF file in JSON format, but I need it in a more readable format like string or datatable. JSON is complex, so how can I convert it?”
The main task is to parse the Line Item Table.
attached JSON File and PDF File
6556392169.pdf.json (262.5 KB)
BS-1 (2).pdf (57.8 KB)
Hi @kishan.savaliya
Refer the below Thread,It might helps you
One of the quick options:
[grafik]
[grafik]
[grafik]
myJArray.ToObject(of DataTable)
myJArray.ToObject(of DataTable).DefaultView.ToTable(False, {"Description","Quantity","Unit Price","Line Amount"})
Hope it helps!!
ppr
(Peter Preuss)
May 3, 2024, 7:55am
4
kishan.savaliya:
its not works for me
it will not work as the part of the JSON is not within the needed structure for this JArray…ToObject Short cut.
from where in Detail it was caught. What is the Datatype of the used object used for?
data is extracted from pdf using Azure Custom Model and Format is JSON only.
ppr
(Peter Preuss)
May 3, 2024, 8:20am
6
At least using:
And
could be used for constructing a datatable structure and populating its rows
1 Like
thanks @ppr for the solution
system
(system)
Closed
May 6, 2024, 9:55am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.