Open StephanSchwebel opened 2 years ago
No, it cannot render such large JSON in tree view.
I don't quite understand. In your judgement, is this issue a bug? Are you considering doing anything about it?
Personally I don't think the behaviour is acceptable, considering that the plugin promises: "A JSON tree viewer. The JSON tree viewer for Notepad++ can handle >10MB JSON file easily" Also making the the parent application inoperable for long periods is not good at all.
No, it's because tree view control used in NPP. It cannot handle such many nodes, JSToolNpp can analyze even larger JSON file, but tree view control cannot handle that.
FWIW my JsonTools plugin has come up with a pretty reasonable and easy-to-implement solution for dealing with such large arrays, namely to only include 10,000 evenly-spaced elements from very large JSON objects or arrays. This makes the tree view efficient in all cases. For example, for a 1 million-element array, the tree view would display every 100th element in the array. It's not perfect, but it's the only solution I could come up with that avoids eating all available memory and hanging forever.
I have a json file that basically contains an array of a few hundred thousand bytes (integers). It takes a very long time to view this kind of data in JSToolNpp JSON Viewer. I could not determine the exact time it takes as I usually stop the process after a few minutes. During this operation Notepad++ itself is not responding (it has "...(Not Responding)" in the title bar). The attachment (extension was changed to .txt to statisfy github) is a minimal file that demonstrates this problem. imgage_data.txt