Skip to content

Instantly share code, notes, and snippets.

@trampster
Last active September 15, 2017 11:42
Show Gist options
  • Save trampster/b6de500314e58da611acaab4c40f8eeb to your computer and use it in GitHub Desktop.
Save trampster/b6de500314e58da611acaab4c40f8eeb to your computer and use it in GitHub Desktop.
Jsonics Example
//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