The way you shouldn't create a json Dictionary
var temp = MeetingTypeList.Select(x => $"\"{x.MeetingTypeId}\" : \"{x.MeetingTypeName}\"");
var json = $"{{ {string.Join(", ", temp)} }}";
They way you should create a json Dictionary
var dict = MeetingTypeList.ToDictionary(x => x.MeetingTypeId, x => x.MeetingTypeName);
string json = JsonConvert.SerializeObject(dict, Formatting.Indented);
Update from Brett Caswells comments
Some considerations to this.
- We cannot guarantee Distinction with MeetingTypeId MeetingTypeName pairing (it doesn't likely though).
- Whether "(" is prepended and ")" appended to the result of this serialization.
If you need the extra parenthesises
json = $"({json})";