Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Created March 13, 2012 21:19
Show Gist options
  • Save thecodejunkie/2031677 to your computer and use it in GitHub Desktop.
Save thecodejunkie/2031677 to your computer and use it in GitHub Desktop.
Dynamic model to json using Nancy
Get["/"] = _ => {
dynamic model = new ExpandoObject();
model.Name = "Nancy";
return Response.AsJson((object)model);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment