Skip to content

Instantly share code, notes, and snippets.

@ryanlowdermilk
Created January 26, 2012 06:13
Show Gist options
  • Save ryanlowdermilk/1681337 to your computer and use it in GitHub Desktop.
Save ryanlowdermilk/1681337 to your computer and use it in GitHub Desktop.
var customer = new Customer { Name="Joe Bloggs", Age=31 };
var json = JsonSerializer.SerializeToString(customer);
var fromJson = JsonSerializer.DeserializeFromString<Customer>(json);
@ryanlowdermilk
Copy link
Author

Yup - you're right. I called my Portable Class Library from a Console app and the above code worked just fine. Interesting. The Portable Class Library should work fine on Windows, Xbox and Phone.

Thanks for the help @mythz!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment