Consuming JSON with Dynamics and C# 4.0


I don’t know if there’s a more standard way of doing this but I found this article that has some helper classes for consuming Json in C# : http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2010/08/22/using-c-4.0-and-dynamic-to-parse-json.aspx.

You can then steal consume data off of peoples Ajax applications. Course there’s no contract there and it’s not really built for public consumption so if they change the format on you it’d be kind of funny. I have seen some api’s spit out json but they tend to have a query string parameter to receive the info in xml.

That being said, it works. I don’t know if there’s a more standard way of consuming JSON in C#. If there is a more standard way I missed that link.

Advertisements

About Kevin Buckley
.Net web developer with a lot of experience in CMS. Currently working at Sitecore as Solutions Engineer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: