A couple of years ago, when I started these libraries, NDJSON was the most popular solution for JSON streaming (to optimise parsing speed and memory usage when sending large datasets).
Nowadays, it's JSONL, so I've added support for it as well 😎.
github.com/tpeczek/json...
#DotNet #NDJSON #JSONL
You load a CSV written in french iso-8895-15 and using the ";" as delimiter You first load the CSV document. Then using the stream feature you convert on the fly the document into UTF-8 using mb_string extension. You convert and store the CSV document as a NDJson file using a list with a header. Last but not least you convert the strings into integer where it makes sense using the JsonConverter formatter capabilities.
Coming in the next minor version of #LeagueCSV the JsonConverter #ndjson support is improved you can now do the following #php #csv #oss
Blogged: "ASP.NET Core 9 and IAsyncEnumerable - Async Streaming JSON and NDJSON From Blazor WebAssembly"
(www.tpeczek.com/2024/09/aspn...)
#AspNetCore #Blazor #AsyncStreaming #JSON #NDJSON