Changing DataContractJsonSerializer by JavaScriptSerializer due to problems with the former (it needs attributes on the classes in order to work well).