Recently, I came across this method called “ReadFromJsonAsync” that reads the content and then deserialize the JSON into C# objects. This way we don’t have to manually deserialize a JSON response.

Unfortunately, when I tried using this extension method in application, Visual Studio couldn’t resolve it nor it suggested any assembly to automatically pull and resolve the method. It turns out that the method exists in NuGet package named “System.Net.Http.Json”. You can manually install the package to resolve and use the extension method.

Leave a Reply