Skip to content

Instantly share code, notes, and snippets.

@peterkeating
Created October 5, 2012 16:31
Show Gist options
  • Select an option

  • Save peterkeating/3840853 to your computer and use it in GitHub Desktop.

Select an option

Save peterkeating/3840853 to your computer and use it in GitHub Desktop.
Override default Nancy JSON serializer with the Json.NET serializer.
protected override NancyInternalConfiguration InternalConfiguration
{
get { return NancyInternalConfiguration.WithOverrides(c => c.Serializers.Insert(0, typeof(JsonNetSerializer))); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment