Created
June 12, 2011 13:31
-
-
Save joeriks/1021552 to your computer and use it in GitHub Desktop.
Sample JSon array with c# anonymous objects (Webmatrix)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var arry = new[] { | |
new { | |
id=Guid.NewGuid(), | |
name="one", | |
done=false | |
}, | |
new { | |
id=Guid.NewGuid(), | |
name="two", | |
done=true | |
} | |
}; | |
Json.Write(arry, Response.Output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment