Code Maze Author

Januarius Njoku

Januarius Njoku is a mechanical engineer who is passionate about using technology to improve the design and performance of mechanical systems. With experience in programming with C# and Python, he is also well-versed in DevOps technologies such as Ansible, Docker, and Puppet. Moreover, having a knack for writing, he has authored several technical articles on C# and .NET technologies. He is always on the lookout for new challenges and opportunities to learn and grow in the field of engineering and technology.
Also find me here:


MY ARTICLES:

Hashtable in C#

In this article, we will explore the Hashtable class in C#. We will comprehensively discuss its practical usage and key features. Let's dive...

C# List to JSON: How to Serialize a List

To serialize a list to JSON in C#, pass it to JsonSerializer.Serialize(). One List<T> in, one JSON array out, and nothing to install, because System.Text.Json ships with .NET. There are three more routes worth knowing. SerializeToUtf8Bytes() returns UTF-8 bytes...

Read and Parse a JSON File in C#: 6 Ways

To read a JSON file in C#, open it with File.OpenRead() and hand the stream to JsonSerializer.Deserialize<T>(). Two calls, no NuGet package, and the file never becomes a string we throw away, which is why it is the fastest of the six methods we benchmark below....

How to Convert JSON to DataTable in C#

In this article, we are going to discuss various methods that we can use to convert JSON to DataTable in C#. A DataTable is a representation of a database table that we can use to store data as a collection of rows and columns in a grid format. All the methods that we...