I have a List of users List<Users> and I need to make a javascript array of all the UserID’s.
I know I can manually build this using a stringbuilder and loop through and then save it to a variable and show it on my asp.net-mvc view page.
Any other more creative ways to do this?
JsonConvert.SerializeObject, from Json.NET.
Simplified example below.: