Copy link to clipboard
Copied
Please, could I ask if the Extract API JSON output file is indented?
I ran successfully the the following Python code provided in the website: "Extract Text and tables (w/ Tables and Figures Renditions)"
I got the tables, the pictures and the JSON file. However, the JSON file is not indented. I do not know if it is expected to be so I ask just in case.
Please, find attached the pdf and the JSON file.
Thank you very much 🙂
1 Correct answer
Check your editor, or how you view JSON files in general. I use Visual Studio Code and it can pretty up JSON nicely.
Copy link to clipboard
Copied
White space and indentations do not matter in a JSON file. Are you asking if the JSON file contains _information_ about indentations in the PDF? If so, that's a different question.
Copy link to clipboard
Copied
Thank you very much for your quick response 🙂
It was only that for me it is easier to check at a first view if the
information is correctly extracted when the JSON file is indented.
As I was reading some posts in the Forum with indented JSON files attached
so I thought that maybe the service was providing indented JSON files too.
Again, thank you very much.
Regards,
Maria
Copy link to clipboard
Copied
Check your editor, or how you view JSON files in general. I use Visual Studio Code and it can pretty up JSON nicely.
Copy link to clipboard
Copied
Please, I am going to post a new message regarding keeping the shaded rows
in tables when extracting them. I was wondering if future features in
Extract API could do it.
Cheers,
Maria

