Alex Rivera | Logout

Best way to parse JSON data into a .NET object

Asked 2009-01-08T04:41:36.393
33

What's the best way to parse JSON data into a .NET object? I am trying to assist a coder friend of mine and he is trying to dump some data from a JSON string into a database using ASP.net. Are there any prebuilt scripts that would make this happen?

Thanks in advance to any help.

Edit
Report

1 Answer

2

If you are using .NET 3.5, you probably don't need a third party library. The JavaScriptSerializer class can be used (just repeating what was mentioned before) but you also have access to the DataContractJsonSerializer, which offers a different model for mapping between CLR objects and JSON.

answered 2009-01-08T05:16:14.030

Your Answer