jsonserializer

UpdatePanel seems to struggle with huge data as AsynPostBack. jSonSerializer maxLength doesn't help

Hi All, I have a ASP.NET 3.5 App and trying to update a Update Panel which has a nested custom control. In that custom control is a ComponentArt Gird, which gets filled by almost 13MB of Data (Yes, I could chunck that...) at this Update. I have a hidden button wihtin the update Panel, which I trigger by JS from client side, when I need...

Cannot find DataContractJsonSerializer from an Asp.Net Mvc application...

I can't get access to the DataContractJsonSerializer method from System.Runtime.Serialization.Json If I do: using System.Runtime.Serialization.Json; I get an error... How can I access this in my Asp.Net Mvc app so I can use the DataContractJsonSerializer method ...

How can I deserialize elementary types from json in ASP.NET(System.Runtime.Serialization.Json)

HI! I have a little problem. When I'm using DataContractJsonSerializer with complex types(own types) it works fine. But I have to deserialize TimeStamp or DateTime from string. So I cant mark this types with DataContract, DataMember attributes. I wrote some code string jsonedTS="PT2M15S"; DataContractJsonSerializer jsonSerializer = ...

Rename field in JsonSerializer

Hi, I have a class library that I need to output via a JsonResult in the ASP.NET MVC framework. (JsonResult uses the JsonSerializer to produce its output.) I discovered through reading the documentation that if you put [ScriptIgnore] on a public property/field, it will not get serialized, much like [XmlIgnore] for the XML serializer. ...

Coercing Json Serializer into producing a particular datetime format (yyyy-mm-ddThh:mm:ss.msmsmsZ)

MyClass theSession = new MyClass() { accountId = 12345, timeStamp = DateTime.Now, userType = "theUserType" }; System.Web.Script.Serialization.JavaScriptSerializer Json = new System.Web.Script.Serialization.JavaScriptSerializer(); Response...

JavaScriptSerializer().Serialize(Entity Framework object)

May be, it is not so problematic for you. but i'm trying first time with json serialization. and also read other articles in stackowerflow. I have created Entity Framework data model. then by method get all data from object: private uqsEntities _db = new uqsEntities(); //get all data from table sysMainTableColumns where tableName=param...

JSON Serialization of a Django inherited model

Hello, I have the following Django models class ConfigurationItem(models.Model): path = models.CharField('Path', max_length=1024) name = models.CharField('Name', max_length=1024, blank=True) description = models.CharField('Description', max_length=1024, blank=True) active = models.BooleanField('Active', default=True) ...

How to convert an HTML table to JSON and use the JSON with JSON.NET?

I'm asking this question because I think it's one that we run into from time to time. I needed to take an HTML table that had been manipulated client side and send the resulting table data to the server for processing. Additionally, I wanted to map this using JSON.NET directly to my business object(s). ...

Unable to set jsonSerialization in Azure

Hey everyone, The app I'm trying to put in Azure was built in ASP.NET 3.5, and I converted it to 4.0 when moving it to the cloud. Everything works great, until I try to add this block to my web.config: <system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="10000000"></jsonSerialization> </webSe...

How to get key value pairs from DataContractJsonSerializer?

the correct format for my keyvalue pairs is { "Fields": { "key1": "value1", "key2": "value2" } } But I cannot get this out of my object using the DataContractJsonSerializer, does anyone know how. [DataContract] class Product { [DataMember] public Dictionary<string, stri...

escaping string for json result in asp.net server side operation

I have a server side operation manually generating some json response. Within the json is a property that contains a string value. What is the easiest way to escape the string value contained within this json result? So this string result = "{ \"propName\" : '" + (" *** \\\"Hello World!\\\" ***") + "' }"; would turn into string res...