Top "Javascriptserializer" questions

System.

JavaScriptSerializer is subtracting one day from date

I am using JavaScriptSerializer for serializing DateTime, but when I deserialize it show one day less from the date it …

c#-4.0 datetime javascriptserializer
javascriptserializer date format issue

I am serializing a complex object with lot of properties of other Types and Lists to JSON form but the …

json datetime javascriptserializer
"<" character in JSON data is serialized to \u003c

I have a JSON object where the value of one element is a string. In this string there are the …

asp.net json serialization encoding javascriptserializer
Convert type 'System.Dynamic.DynamicObject to System.Collections.IEnumerable

I'm successfully using the JavaScriptSerializer in MVC3 to de-serialize a json string in to a dynamic object. What I can't …

c# javascriptserializer dynamicobject
JavaScriptSerializer - how to deserialize a property with a dash ("-") in it's name?

Trying to deserialize this JSON: { "result":"success" "arguments": { "activeTorrentCount":22, "cumulative-stats": { "downloadedBytes":1111, } } } My class: private class DeserializationMain { public string result; //works …

c# .net json serialization javascriptserializer
JavaScriptSerializer circular reference when using ScriptIgnore

I have my Entity Framework Entities split out into a separate class library from my web project and data access …

asp.net-mvc entity-framework circular-reference javascriptserializer
JSON deserialize , Error : null to value type, how to know exact property causing error?

In my C# code, I'm trying to deserialize a JSON with 100s of properties (complex, primitive, derived) and I'm getting …

c# .net json-deserialization javascriptserializer
JavaScriptSerializer [ScriptIgnore] not effective on virtual properties?

I have returning a Json(myObj) action result. The myObj is of type Badge The only two objects that Badge …

c# asp.net-mvc javascriptserializer
Asmx web service how to return JSON and not XML?

My service method: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string getDataFromTrainingMaster() { List<TrainingMasterDataStruct> results = new DAL().GetDataFromTrainingMaster(); JavaScriptSerializer …

c# asp.net .net asmx javascriptserializer
Escaping quotes with JavaScriptSerializer in ASP.NET MVC3

I Have an Array of users that i want to pass into a view as a javascript array. I'm doing …

javascript jquery asp.net-mvc javascriptserializer