I use json + <kotlinx.io> and I have an object wit...
# serialization
h
I use json + kotlinx.io and I have an object with a nested list containing many elements, can I stream the nested list without consuming the full object into the memory, by eg using JsonElement directly?
j
I created a mini-library for a similar situation, maybe it's useful for you too. It allows you to easily build deserializers with callbacks. You can find it at https://github.com/JBeet/Blockbuster. I'm not the most experienced library author, but I did publish it on maven. Feedback is welcome, and it's a permissive license so use it as you please.
h
Thanks, that looks interesting, all I need is streaming the values from a nested list to a Sequence, so I think wrapping it into a sequence builder should do the trick.