Created
September 29, 2017 13:56
-
-
Save Flayed/d6235fa07758d98fd25a397ca474d79b to your computer and use it in GitHub Desktop.
json.net serialize and deserialize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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