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

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.

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

They removed code examples from the first link, so there are some here: MSDN.

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.

Clarified link
Source Link
Edgar
  • 4.5k
  • 5
  • 44
  • 64

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

ExampleThey removed code examples from the first link, so there are some here: MSDN.

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

Example: MSDN.

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

They removed code examples from the first link, so there are some here: MSDN.

added 50 characters in body
Source Link
Edgar
  • 4.5k
  • 5
  • 44
  • 64

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

There's an example on the pageExample: MSDN.

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

There's an example on the page.

Use the DataContractJsonSerializer class: MSDN.

It's better than JavaScriptSerializer because it can also safely deserialize objects from a JSON string.

Example: MSDN.

Post Undeleted by Brad Larson
Mod Converts to Comment
Post Deleted by casperOne
added 110 characters in body; edited body
Source Link
Edgar
  • 4.5k
  • 5
  • 44
  • 64
Loading
Source Link
Edgar
  • 4.5k
  • 5
  • 44
  • 64
Loading