Home
kamranayub edited this page Feb 28, 2011
·
13 revisions
.JSON is a group of classes in one file that help you easily work with JSON as a dynamically typed object (myJson.someProperty[0].name
), obtained from web services, strings, or anonymous objects.
It's made up of syntactic sugar, spice, and everything nice.
View full examples in /src/.
- Copy the file (
DotJson.cs
orDotJson.dll
) to your project. - Add a reference to
System.Web.Extensions
. - Take a deep breath
- You're all done
"But I'm using VB!"
In VB.NET, the equivalent syntax can be had using Option Strict Off
and:
' Regular
Dim json = JsonService.Get(foo).jsonProperty
' LINQ
Dim json() As Object = JsonService.Get(foo).jsonArray