// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { ReplicationModel.Default.DictionaryAsObject = true; ReplicationModel.Default.LoadTypes(typeof(BoardData).Assembly); var serializer = new JSONSerializer(ReplicationModel.Default); services.AddSingleton <IReplicateSerializer>(new JSONSerializer(ReplicationModel.Default, new JSONSerializer.Configuration() { Strict = false, KeyConvert = (s => s, s => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0]) + s[1..])