Json deserialization for the .NET dictionary.

Given json like this:

[["Rating (out of 5)","3"],["Date taken","Mon, 03 Mar 2003 03:04:03 GMT"]] 

What is the best way to deserialize it into something like Dictionary<string, string> or do I need to use a different data structure?

I would prefer to use the .net serializer, but will consider other options if this does not work.

+4
source share
1 answer

Why not just use one of the many JSON parsers for C #.

Personally, I think Json.NET is very nice. It supports LINQ queries regarding JSON data, serialization to / from JSON, etc.

+5
source

Source: https://habr.com/ru/post/1301771/


All Articles