javascriptserializer Questions
1
I have developed an asp.net web application and initially serialized some data to a json string using the built in javascript serializer. This became problematic as I discovered later on that there...
Farseeing asked 7/10, 2011 at 9:33
2
Solved
I'm looking for an example code/lib to decode a JSON string using C#.
To encode I can do this:
var data = new Dictionary<string,string>();
data.Add("..", "...");
var json_encoded = new J...
Strophanthus asked 8/10, 2011 at 21:45
2
Solved
Trying to deserialize this JSON:
{
"result":"success"
"arguments": {
"activeTorrentCount":22,
"cumulative-stats": {
"downloadedBytes":1111,
}
}
}
My class:
private class Deserializati...
Mclain asked 21/9, 2011 at 3:32
1
Solved
I Have an Array of users that i want to pass into a view as a javascript array. I'm doing this via JavaScriptSerializer, but the string i get has unescaped quotes in it.
Controller Action
public ...
Mccandless asked 23/4, 2011 at 10:27
4
Solved
We are having such a nasty problem when deserializating a JSON date to a C# DateTime.
The code is:
JavaScriptSerializer serializer = new JavaScriptSerializer();
jsonTrechos = jsonTrechos.Replace(...
Stratagem asked 29/11, 2010 at 14:5
2
Solved
I've just started using knockout and I'm running into trouble with DateTime Serialization and Deserialization using the JavaScriptSerializer.
I've updated the gifts model in Steves koListEditor e...
However asked 25/1, 2011 at 20:32
1
Solved
I have a data table in my database where I store various settings. Since they are of any type (even complex object graphs) I decided to store their values as serialized JSON strings.
Let's say tha...
Echinate asked 25/11, 2010 at 1:16
3
Solved
I have a function with a List return type. I'm using this in a JSON-enabled WebService like:
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List&...
Mariquilla asked 22/6, 2009 at 13:3
1
Solved
[Serializable]
public class ModelResource:ISerializable
{
public Int64 Ore { get; private set; }
public Int64 Crystal { get; private set; }
public Int64 Hydrogen { get; private set; }
//needs t...
Click asked 23/1, 2010 at 21:41
1
Solved
Note: I posted a similar question, which was the ancestor of this question, as I was originally thinking of using JSON.NET to parse the JSON, but I'm using the built-in deserializer, so it's a diff...
Fusion asked 20/9, 2009 at 7:26
9
Summary: How do I map a field name in JSON data to a field name of a .Net object when using JavaScriptSerializer.Deserialize ?
Longer version: I have the following JSON data coming to me from a se...
Detonation asked 8/7, 2009 at 19:49
© 2022 - 2024 — McMap. All rights reserved.