alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
2k stars 267 forks source link

FEATURE: json documents preview #2441

Open ozhyrenkov opened 2 years ago

ozhyrenkov commented 2 years ago

Is your feature request related to a problem? Please describe. A lot of leaked data contains not only text/table/image documents, but also .json documents, which might be either storage format or service logs. Aleph properly indexes them, however in the UI preview for such documents unavailable, so I am always downloading documents offline.

Describe the solution you'd like Nice properly formated json documents preview with search request highlights.

Describe alternatives you've considered Converting jsons to pdf as part of ingesting pipeline?

pudo commented 2 years ago

I love the idea of rendering out the nested structure (perhaps just as a table?)

Rosencrantz commented 1 year ago

Just had another request for this to be implemented. @tillprochaska maybe we should look at trying to plan this in somewhere?

juanandresgs commented 12 months ago

Thank you for bumping, @Rosencrantz!

Nested structure would be super nice but even just a plaintext preview (like any other text file) would be immensely useful to avoid analysts downloading tons of small JSON files to check out query results.

lizard843 commented 2 months ago

It would be very useful to have this feature.

tillprochaska commented 2 months ago

This could be a good community contribution and shouldn't be too difficult to implement, given some React/frontend knowledge. Happy to provide pointers on how to get started!