Skip to content

Instantly share code, notes, and snippets.

@Flayed
Created September 29, 2017 13:56
Show Gist options
  • Select an option

  • Save Flayed/d6235fa07758d98fd25a397ca474d79b to your computer and use it in GitHub Desktop.

Select an option

Save Flayed/d6235fa07758d98fd25a397ca474d79b to your computer and use it in GitHub Desktop.
json.net serialize and deserialize
using Newtonsoft.Json;
T obj = JsonConvert.DeserializeObject<T>(json);
string json = JsonConvert.SerializeObject(obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment