I am using this code to serialize the users into json text file.
if (File.Exists(path))
{
using (var file = File.CreateText(path))
{
var serializer = new JsonSerializer();
serializer.Serialize(file, this.users);
}
}
This is the result that I get :
[![output]](../../images/3775335468.webp)
How can I get a result like this :
[![pretty-print]](../../images/3839560881.webp)