Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to parse JSON data into a .NET object

Tags:

json

asp.net

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.

like image 429
mhipp Avatar asked Jan 08 '09 04:01

mhipp


People also ask

How do I convert a JSON file to an object?

Use the JavaScript function JSON. parse() to convert text into a JavaScript object: const obj = JSON.

Can you parse a JSON object?

parse() JSON parsing is the process of converting a JSON object in text format to a Javascript object that can be used inside a program. In Javascript, the standard way to do this is by using the method JSON. parse() , as the Javascript standard specifies.


1 Answers

The .NET Framework 3.5 has the JavaScriptSerializer class that can ease the deserialization. You can also use third party libraries like JSON.NET.

like image 159
Christian C. Salvadó Avatar answered Sep 21 '22 21:09

Christian C. Salvadó