i want to convert a List to JSON.
var bundledChats = new List<(int chatId, string chatName, Array chatParticipants)>();
bundledChats.Add((
chatId: 1,
chatName: "Random Name"
chatParticipants: [0, 1, 2, 3]));
Console.WriteLine(JsonConvert.SerializeObject(bundledChats));
Thats my Result:
[{"Item1":1,"Item2":"Chat Nummer #1","Item3":[28,200,111]}]
But i want to name Item_1... like the values that i set.