Alter code to use JavaScriptSerializer on objects.