Successfully added
C#
by Nélio
JSON Serialization in C#
The JsonSerializer.Serialize
converts the value of a specified type into a JSON string.
using System.Text.Json;
var user = new User("Krish Jackon", "female", new MyDate(1985, 03, 30));
var json = JsonSerializer.Serialize(user);
Console.WriteLine(json);
Referenced in:
Leave a Comment
All fields are required. Your email address will not be published.
Comments