Json Serialization and Deserialization in C#.net Example


What is  JSON Serialization?

Converting a .Net object to a JSON object is know as JSON serialization and vice versa is known as JSON deserialization.

Just follow the below code and do the changes as per your requirement.


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

Xml Serialization and Deserialization in C#.net Example

What is XML Serialization?

Converting a .Net object to a XML object is know as XML serialization and vice versa is known as XML deserialization.


Just follow the below code and do the changes as per your requirement.

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

Popular Posts