I can pass a variable from MVC ASP.NET by using this :
var lastCategoryId = \'<%=Model.CS.LastSelectedCategory %>\';
This work fine
So easy, so simple
Output is:
[{"id":1,"name":"Name of 1"}, {"id":2,"name":"Name of 2"}, ...];