javascriptserializer
JavaScriptSerializer. How to ignore property
I know about ScriptIgnoreAttribute. But what if I want to ignore a property based on criteria. For example how to ignore a nullable property on serialization only if it\'s null and doesn\'t contai开[详细]
2023-03-06 00:30 分类:问答How can I pass json string into HtmlHelper's result?
I want to pass a serialized json object and returned it within custom Html Helper\'s result. Something like this[详细]
2023-03-05 00:31 分类:问答Dependency Injection and JavaScriptConverter.Deserialize
My application needs to combine extensive use of dependency inje开发者_StackOverflowction with the use of JSON as a public API.This apparently leads to the need for a custom JavaScriptConverter.[详细]
2023-03-03 16:49 分类:问答Deserializing JSON result with Json & JavaScriptSerializer
here\'s my problem: I\'m trying to deserialize json that hasn\'t been done by me. The format of the json is as follows:[详细]
2023-03-01 12:07 分类:问答Make Entity Framework object into generic class via extension class?
I have an EF object called PagePreference.The corresponding table contains three fields: UserName(PK, varchar(200), not null), PageName(PK, varchar(700), not null), and PageState(text, null).The PageS[详细]
2023-02-22 19:51 分类:问答Serialize custom type property to string using JavascriptSerializer
I am using the .NET JavascriptSerializer class for a while now to开发者_如何转开发 serialize my object to a JSON representation and use it on the client side. Everything works great as long as I stick[详细]
2023-02-20 14:39 分类:问答discover what property is causing a circular reference error
I am trying to deserialize an nhibernate object. From开发者_如何学Go some reason I am getting a circular reference error. The problem is that I cannot figure from that what property is causing the err[详细]
2023-02-18 17:45 分类:问答Need help parsing JSON
The following code to parse JSON is not working. What am I doing wrong? string jsonText = @\"{ \"\"John Doe\"\":{[详细]
2023-02-15 22:21 分类:问答c# Deserialize JSON list of object error
when I deserialize to list of object it work but when I deserialize to a object with list type it errors out. Any idea how to make it work?[详细]
2023-02-13 04:54 分类:问答Change the JSON Key Text in a MVC2 controller which returns JsonResult
I am creating a small number of JSON \"Web Services\" using JsonResult as part of a large MVC2 application, the Web Services will be consumed by an iPhone app. The app developer has suggested that the[详细]
2023-02-01 06:00 分类:问答