jsonista icon indicating copy to clipboard operation
jsonista copied to clipboard

using jackson streaming api for large amounts of json

Open henryw374 opened this issue 4 years ago • 2 comments

I've created a gist to show reading and writing json in a streamed style - specifically where you have a large array of objects. https://gist.github.com/henryw374/5e41464d386942910b50d1af02bded61 not sure if you had thought about adding something like this to the api or not, but anyway.. still handy to have a demo example

... and if you can see any mistakes there please let me know ;-)

Thanks

henryw374 avatar Dec 30 '20 15:12 henryw374

I've used a similar approach in the projects where I needed streams of JSON. I tend to use reducibles/reducible-seqs instead of actual Sequences/lazy-seq. You can make some other smaller tweaks to keep GC churn low and application throughput a bit higher if your application is centered around the JSON stream.

ohpauleez avatar Jan 26 '21 13:01 ohpauleez

see #53 and #55, possibly coming soon

bsless avatar Jun 07 '21 13:06 bsless