Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

json support in visual studio 2010

I'm trying to work on a new project parsing some JSON data for a Silverlight 4 project (specifically created as a "Silverlight Business Application - Visual C#" project) using C# in Visual Studio 2010, and I can't find how to include the references to have parsers and native object support for JSON data.

As far as I know my development tools are up to date (checked MS update).

I know that I can probably just write my own parser but that seems like re-inventing the wheel. Below are some lines that work in VS 2008 in another project of ours (can't post the files due to their being part of a business app):

using System.Json;

results = (JsonObject)JsonObject.Load(e.Result);

I hope my description is adequate.

Thanks for looking,

jnsohnumr

like image 390
jnsohnumr Avatar asked Dec 13 '22 22:12

jnsohnumr


1 Answers

I use System.Web.Script.Serialization.JavaScriptSerializer

However, since it does not work in Visual Studio 2010 without configuration, you'll have to figure out how to make it work yourself.

like image 99
Bob Avatar answered Dec 22 '22 01:12

Bob