Skip to main content
5 of 5
Added my own example
Edgar
  • 4.5k
  • 5
  • 44
  • 64

Use the DataContractJsonSerializer class: MSDN1, MSDN2.

My example: HERE.

It can also safely deserialize objects from a JSON string, unlike JavaScriptSerializer. But personally I still prefer Json.NET.

Edgar
  • 4.5k
  • 5
  • 44
  • 64