jsonhero-web icon indicating copy to clipboard operation
jsonhero-web copied to clipboard

JSON hero does not allow you to open large JSON files

Open NobleDraconian opened this issue 2 years ago • 9 comments

Currently, as of 4/29/22, if you attempt to open a large JSON file (around 22MB), the site does not allow you to open it. It simply acts as if you selected no file!

Usecase : Using JSON hero to browse log files & other automatically generated datastructures.

NobleDraconian avatar Apr 29 '22 23:04 NobleDraconian

@NobleDraconian are there any errors in the console (f12)?

bolshoytoster avatar Apr 30 '22 09:04 bolshoytoster

Yup this is a known issue, and is related to how the Column View is implemented. We need to reimplement it using virtualization so we can scale the json documents. This is something that is definitely on the roadmap.

ericallam avatar May 01 '22 10:05 ericallam

Sample JSON for you guys to try your implementation against: https://raw.githubusercontent.com/kareltucek/firmware/master/examples/mirroring_keymap.json

ubuntudroid avatar May 01 '22 16:05 ubuntudroid

@ericallam I've created a branch with column item virtualization. This is only part of the solution though.

Locally I'm getting RangeError: Maximum call stack size exceeded errors for very large files. I've found two separate causes for this:

  1. Getting related paths, i.e. the getRelatedPathsAtPath function. Example: https://jsonplaceholder.typicode.com/photos
  2. Inferring the types. Example from @ubuntudroid above: https://raw.githubusercontent.com/kareltucek/firmware/master/examples/mirroring_keymap.json

matt-aitken avatar May 02 '22 16:05 matt-aitken

Great to hear this is on the roadmap as my first test of JSON hero was a 14mb GEOJSON file and it didn't work at all; https://github.com/OpenUpSA/nu-land-parcel-map/blob/main/src/data/complete.json

paulmwatson avatar Sep 09 '22 11:09 paulmwatson

@paulmwatson thanks for sending us a nice large JSON file to test with!

ericallam avatar Sep 09 '22 20:09 ericallam

Hello, is there any progress on this topic? I can also supply large json files (around 4.7MB) for testing/debugging purposes if needed. Thanks.

migdur avatar Oct 04 '22 10:10 migdur

Hey @ericallam, is there anything I can do to help?

jonaskuiler avatar Dec 29 '22 11:12 jonaskuiler

Facing the same issue @ericallam, is this in the roadmap to support large files?

arunmg007 avatar Dec 23 '23 15:12 arunmg007