CheckWeb.AppHost.ConfigureSerialization C# (CSharp) Method

ConfigureSerialization() private method

Configure JSON serialization properties.
private ConfigureSerialization ( Funq.Container container ) : void
container Funq.Container The container.
return void
        private void ConfigureSerialization(Container container)
        {
            // Set JSON web services to return idiomatic JSON camelCase properties
            //JsConfig.EmitCamelCaseNames = true;
            //JsConfig.EmitLowercaseUnderscoreNames = true;

            // Set JSON web services to return ISO8601 date format
            JsConfig.DateHandler = DateHandler.ISO8601;

            // Exclude type info during serialization as an effect of IoC
            JsConfig.ExcludeTypeInfo = true;
        }