I am doing an MVC application where i need to pass json object from controller to view.
var dictionary = listLocation.ToDictionary(x => x.label, x => x