datacontractjsonserializer
Serialize Dictionary<TKey, TValue> to JSON with DataContractJsonSerializer
I have an object tree that I\'m serializing to JSON with DataContractJsonSerializer. Dictionary<TKey, TValue> gets serialized but I don\'t like the markup - the items are not rendered like this:[详细]
2023-04-06 04:21 分类:问答Windows Phone - Background Task - Broken at DataContractJsonSerializer.WriteObject
I am using Background Task in Windows Phone Mango. I need to send dat开发者_Go百科a to server using JSON format. But when DataContractJsonSerializer.WriteObject function is executed, nothing happens t[详细]
2023-04-03 10:17 分类:问答Deserializing JSON in ASP.NET C#
I have the following JSON: { \"recipe\": { \"rating\": 19.1623, \"source_name\": \"Allrecipes\", \"thumb\": \"http://img.punchfork.net/8f7e340c11de66216b5627966e355438_250x250.jpg\",[详细]
2023-03-25 22:01 分类:问答How to deserialize JSON returned by WCF Data Service (OData)
An external OData Service returns the following during a POST operation (for a service operation): { \"d\" : {[详细]
2023-03-16 04:07 分类:问答Silverlight json won't serialize
I have been trying to serialize some json data in Silverlight.I am using the following code System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.[详细]
2023-03-07 16:43 分类:问答.NET DataContractJsonSerializer, Nested collections throwing me for a loop
I\'m working on a class to get the Latitude and Longitude of an address by 3different providers (just for comparison sake).[详细]
2023-03-01 21:43 分类:问答DataContractJsonSerializer DateTime implicit timezone conversion
I have a date time in the database and I retrieve it from the d开发者_运维百科atabase using Entity Framework, I then pass out the data via JSON API through the DataContractJsonSerializer.[详细]
2023-02-26 12:56 分类:问答Deserializing JSON 2-dimensional array of values
I\'ve got a 2-dimensional array of values in JSON format: [[57, 2], [57, 2], [58, 2], [55, 2], [60, 2], [54, 1], [59, 11]][详细]
2023-01-22 07:03 分类:问答Deserializing a JSON array of mixed types
I\'m having trouble deserializing a JSON array of mixed types using the DataContractJsonSerializer class. I\'ve spent a bunch of time looking for a solution to no avail, so I thought I\'d go ahead and[详细]
2023-01-19 05:43 分类:问答.NET Append JSON to a string already serialized with DataContractJsonSerializer
I am using DataContractJsonSerializer to serialize an object to json, and then returning to the client with AJAX. I now need to serialize another object to return along with it. The problem is MSs \"d[详细]
2023-01-14 18:45 分类:问答