Use the DataContractJsonSerializer class: MSDNMSDN1, MSDN2.
It's better thanMy example: JavaScriptSerializer because itHERE.
It can also safely deserialize objects from a JSON string.
They removed code examples from the first link, so there are some here:unlike MSDNJavaScriptSerializer. But personally I still prefer Json.NET.