Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created November 22, 2022 17:42
Show Gist options
  • Save jskeet/6c423376228fb0ad6e9ea1d2b1a0c013 to your computer and use it in GitHub Desktop.
Save jskeet/6c423376228fb0ad6e9ea1d2b1a0c013 to your computer and use it in GitHub Desktop.
using Newtonsoft.Json;
string json = "{\"id\":\"5005t000004RMNTAA4\",\"success\":true,\"errors\":[]}";
var dict = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
Console.WriteLine(string.Join(", ", dict.Keys));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment