Json.NET does this…
string json = @"{""key1"":""value1"",""key2"":""value2""}";
var values = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
More examples: Serializing Collections with Json.NET
More Related Contents:
- .NET NewtonSoft JSON deserialize map to a different property name
- Setting Access-Control-Allow-Origin in ASP.Net MVC – simplest possible method
- How to perform partial object serialization providing “paths” using Newtonsoft JSON.NET
- Json.NET require all properties on deserialization
- Parsing JSON DateTime from Newtonsoft’s JSON Serializer
- Could not load file or assembly ‘Newtonsoft.Json’ or one of its dependencies. Manifest definition does not match the assembly reference
- How to use default serialization in a custom JsonConverter
- Deserializing JSON using JSon.NET with dynamic data
- How to use Newtonsoft.Json as default in Asp.net Core Web Api?
- Ignore parsing errors during JSON.NET data parsing
- Json.NET (Newtonsoft.Json) – Two ‘properties’ with same name?
- How can I deserialize an invalid json ? Truncated list of objects
- Dates without time in ASP.NET Web API’s JSON output
- deserialize a datatable with a missing first column
- Passing bash variable to jq
- Can you use a trailing comma in a JSON object?
- How to call nested json data using API in flutter?
- Is there a limit on how much JSON can hold?
- Iterating through a JSON file PowerShell
- Using jq how can I split a very large JSON file into multiple files, each a specific quantity of objects?
- Partly JSON unmarshal into a map in Go
- Ignoring null fields in Json.net
- replace WCF built-in JavascriptSerializer with Newtonsoft Json.Net json serializer
- How to create multiple tables in jasper report using json as a datasource?
- How to use jq when the variable has reserved characters?
- Check if a Postgres JSON array contains a string
- Json.Net PopulateObject – update list elements based on ID
- Is there an API call for changing user password on keycloak?
- JSON single value parsing
- How to extract all the keys in a JSON object with BigQuery