Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created November 23, 2022 11:57
Show Gist options
  • Save jskeet/068bda5d4330d3462e2a7d3cace0ab92 to your computer and use it in GitHub Desktop.
Save jskeet/068bda5d4330d3462e2a7d3cace0ab92 to your computer and use it in GitHub Desktop.
Demonstration that the code provided with the JSON provided works
using Newtonsoft.Json;
string json = "{\"Code\":\"AA10\",\"day\":\"monday\",\"errors\":[]}";
var newyvar = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
string new_row = Convert.ToString(newyvar["Code"]) + ";" + "New";
Console.WriteLine(new_row);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment