So I am making an application in C# to read some information from the web, but it is a windows forms application. I get a JSON string, and I need to get some information from it. I know there is a library for that for C# web applications, but how can I use in in my windows forms application?
There are many JSON libraries out there. Here are three suggestions that you could look into:
Json.NET, a fairly popular library for JSON (de-)serialization.
ServiceStack's JsonSerializer, according to a comparison in this ServiceStack blog currently the fastest JSON (de-)serializer.
I believe the .NET 4 Framework might also have JSON serialization (in the System.Runtime.Serialization.Json
namespace from the System.Runtime.Serialization.dll
assembly; the namespace seems to have been available in .NET 3.5, but in a different assembly), but I've never looked at it closely.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With