Ndjson.AsyncStreams
Ndjson.AsyncStreams is a solution for working with asynchronous streaming data sources over HTTP using NDJSON (Newline Delimited JSON).
Installation
You can install Ndjson.AsyncStreams.Net.Http, Ndjson.AsyncStreams.AspNetCore, or Ndjson.AsyncStreams.AspNetCore.Mvc from NuGet.
PM> Install-Package Ndjson.AsyncStreams.Net.Http
PM> Install-Package Ndjson.AsyncStreams.AspNetCore
PM> Install-Package Ndjson.AsyncStreams.AspNetCore.Mvc
Demos
There is a demo project available here.
Additional Resources
There are blog posts available which provide information about internals and usage of Ndjson.AsyncStreams:
- Fetch API, Streams API, NDJSON, and ASP.NET Core MVC
- Consuming JSON Objects Stream (NDJSON) With HttpClient
- Streaming JSON Objects (NDJSON) With HttpClient
- Receiving JSON Objects Stream (NDJSON) in ASP.NET Core MVC
- ASP.NET Core 6 and IAsyncEnumerable - Async Streamed JSON vs NDJSON
Donating
My blog and open source projects are result of my passion for software development, but they require a fair amount of my personal time. If you got value from any of the content I create, then I would appreciate your support by sponsoring me.