# DataTableConverter **Repository Path**: lanicon/DataTableConverter ## Basic Information - **Project Name**: DataTableConverter - **Description**: A Newtonsoft Json converter to the .NET System.Data.DataTable - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-21 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README DataTableConverter ================== A Newtonsoft Json converter to the .NET System.Data.DataTable Usage ===== Include the convert into your project. Then when serializing/deserializing an object include the converter ``` string json = JsonConvert.SerializeObject(table, new Serialization.DataTableConverter()); DataTable table = JsonConvert.DeserializeObject(json, new Serialization.DataTableConverter()); ``` Or you can edit the global configuration for the JSON .NET serializer so that the converter will be picked up everywhere: ``` GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.Converters.Add(new Serialization.DataTableConverter()); ```