Deserialization C# with Example
You can receive a json from anywhere, a ﬁle or even a server so it is not included in the following code.
static void Main(string args)
string jsonExample; // Has the previous json
Author author = JsonConvert.DeserializeObject(jsonExample);
The method ".DeserializeObject" deserializes 'jsonExample' into an "Author" object. This is why it is important to set
the json variables in the classes deﬁnition, so the method access it in order to ﬁll it.