Skip to content

Instantly share code, notes, and snippets.

@lloydjatkinson
Last active October 21, 2017 09:33
Show Gist options
  • Save lloydjatkinson/f36cd2290838eba743a2b456c868eeb8 to your computer and use it in GitHub Desktop.
Save lloydjatkinson/f36cd2290838eba743a2b456c868eeb8 to your computer and use it in GitHub Desktop.
public static class SerializationSettings
{
public static JsonSerializerSettings Json { get; } = new JsonSerializerSettings()
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
Formatting = Newtonsoft.Json.Formatting.Indented
};
}
@lloydjatkinson
Copy link
Author

lloydjatkinson commented Aug 19, 2017

Sane settings for Newtonsoft.Json to allow for normal JSON/Javascript conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment