I'M building Api that need to return json array as response like this :
"tagList": ["dragons", "training"],
But I got ((each element in separate line )):
"tagList": [
"dragons",
"training"
],
I was using System.Text.Json.Serialization;
I tried to change it to Json.net
by JsonConvert.SerializeObject(obj)
but I got the same result .
could anyone help me ,please ?