Tag Archives: DataContractJsonSerializer

Consume a JSON object in Silverlight

Here is how to consume a JSON object in Silverlight 2. Start with a JSON object: var Person = { “firstName”: “John”, “lastName”: “Smith”, “address”: { “streetAddress”: “21 2nd Street”, “city”: “New York”, “state”: “NY”, “postalCode”: 10021 } } Create an entry point into Silverlight. You will need to add namespace System.Windows.Browser. Next add C# [...]