mercredi 3 décembre 2014

Javascript serlize eval


Vote count:

0




Hey just wanted to ask a little question.


I am currently serializing the result of a stored procedure into a jason by using javascript serializer. code below:



JavaScriptSerializer serializer = new JavaScriptSerializer();
string value = string.Empty;
try
{
var response = clsReservasionsSystem.ClassService.GetClassesEN();
var newObj = new Dictionary<string, clsClassEN>();

foreach (var item in response)
{
newObj.Add(item.Key.ToString(), item.Value);
}

value = serializer.Serialize(newObj);
}


the list comes in certain order that must be maintained. When I view the list in Json Viewer, It does automatic Json Eval and prints ID by Ascending ID. is there any way I could get rid of the automatic eval?


thanks in advance



asked 1 min ago







Javascript serlize eval

Aucun commentaire:

Enregistrer un commentaire