See mridula’s answer for why you are getting null. But if you want to directly convert the json string to dictionary you can try following code snippet.
Dictionary<string, object> values =
JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
More Related Contents:
- Deserialize JSON into C# dynamic object?
- How do I turn a C# object into a JSON string in .NET?
- How to Convert JSON object to Custom C# object?
- Casting interfaces for deserialization in JSON.NET
- How do I deserialize a complex JSON object in C# .NET?
- dotnet core System.Text.Json unescape unicode string
- How to tell Json.Net globally to apply the StringEnumConverter to all enums
- Json.NET serialize object with root name
- How can I serialize/deserialize a dictionary with custom keys using Json.Net?
- How to call JsonConvert.DeserializeObject and disable a JsonConverter applied to a base type via [JsonConverter]?
- How to turn off or handle camelCasing in JSON response ASP.NET Core?
- how to convert NameValueCollection to JSON string?
- Send JSON via POST in C# and Receive the JSON returned?
- Can I LINQ a JSON?
- DataTable to JSON [duplicate]
- Cannot deserialize JSON array into type – Json.NET
- How to apply indenting serialization only to some properties?
- JSON Serializer object with internal properties
- Ignoring null fields in Json.net
- Why are all the collections in my POCO are null when deserializing some valid json with the .NET Newtonsoft.Json component
- What is the simplest C# function to parse a JSON string into an object? [closed]
- Deserialize json in a “TryParse” way
- Deserialize json object with dynamic items in C#
- Can JavaScriptSerializer exclude properties with null/default values?
- How do I get formatted and indented JSON in .NET using C#?
- How to serialize or deserialize a JSON Object to a certain depth in C#?
- How do I transform appsettings.json in a .NET Core MVC project?
- Deserializing JSON into an object with Json.NET
- Client configuration to consume WCF JSON web service
- Parsing field name with a colon in JSON