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;