+ 1

what is the best way to handle huge json file?

just asking, I have 250MB+ json file, it's just a generated chord names and their corresponding keys, including slash chord, polychord, and incomplete chord, whenever I fetch the file and assign it to a var, it doesn't give me any error but it seems like it was corrupted, I can only get some data from it

4th Sep 2020, 12:19 AM
fmntd
fmntd - avatar
2 odpowiedzi
+ 1
2.7 million jobs estimated for data science roles in 2020. According to martinadamek.com/2011/02/01/adding-gson-to-android-json-parser-comparison, GSON seemed to be the fastest on a 1000-line file (github.com/martinadamek/json-android-compare/blob/master/src/com/martinadamek/jsonandroid/public_timeline.json): In the browser, consider using a csv-style format on which you can simply use the String split function, as this scales with file size. From code.flickr.com/blog/2009/03/18/building-fast-client-side-searches: Compare its performance to eval, which is also used in Douglas Crockford's json2.js (github.com/douglascrockford/JSON-js/blob/master/json2.js): If you still want to use a general-purpose JSON parser to process large files in the browser, you should also test the performance of the native JSON.parse function, and Douglas Crockford's manual parser (github.com/douglascrockford/JSON-js/blob/master/json_parse.js).
6th Sep 2020, 4:44 AM
Devansh Sadhya
Devansh Sadhya - avatar
+ 1
You can use the online tool Cluria if you want to view the file. It supports very fast and memory-efficient previews even for very large files. If you need to view the full file, it has support for that as well but that might take longer to process. Link: http://cluria.com/
6th Sep 2020, 4:41 AM
Devansh Sadhya
Devansh Sadhya - avatar