This question already has answers here:
Closed 4 years ago.
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 :
[
How can I get a result like this :
[