Skip to content
kamranayub edited this page Feb 28, 2011 · 13 revisions

Welcome to .JSON

.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.

Learn It

Examples

View full examples in /src/.

How to Install

  1. Copy the file (DotJson.cs or DotJson.dll) to your project.
  2. Add a reference to System.Web.Extensions.
  3. Take a deep breath
  4. 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