Last active
September 15, 2017 11:42
-
-
Save trampster/b6de500314e58da611acaab4c40f8eeb to your computer and use it in GitHub Desktop.
Jsonics Example
This file contains 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
//create an optimised Json converter for type Person | |
var jsonConverter = JsonicFactory.Compile(); | |
//serilize a person instance | |
string jsonstring = jsonCoverter.ToJson(new Person(){"FirstName"="Luke", "LastName"="Skywalker"}); | |
//deserialise a person json string | |
Person person = jsonCoverter.FromJson(jsonString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment