Created
January 26, 2012 06:13
-
-
Save ryanlowdermilk/1681337 to your computer and use it in GitHub Desktop.
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
var customer = new Customer { Name="Joe Bloggs", Age=31 }; | |
var json = JsonSerializer.SerializeToString(customer); | |
var fromJson = JsonSerializer.DeserializeFromString<Customer>(json); |
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!!!
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
Looks like you're trying to use it in WP7?
I'd look at using this older port, someone else did a while ago:
http://csainty.blogspot.com/2011/10/using-servicestacktext-for-json.html