0
votes
0answers
25 views

JSON.NET doesn't serialize hidden (shadowed) properties

I have two classes, one called BaseEntity, and one called City. Here are their structures. public class BaseEntity { [Key] internal object Id { get; set; } } And the City class: public ...
0
votes
1answer
26 views

php json saving and reading multiple arrays to file

I am trying to save multiple php arrays one at a time. The arrays come to me from a parser function also one at a time. I used to keep them all in memory and then write them all at once like this: ...
0
votes
0answers
9 views

WCF REST JSON collection null with Twitter

I'm issuing the friends/ids call like so: GET /1.1/friends/ids.json?screen_name=blablabla HTTP/1.1 A valid response is issued: ...
0
votes
1answer
38 views

How can I deserialize a json string List<Dictionary<string,int>> using JQuery?

Many thanks in advance for your help. I have the following code in an action which returns a json serialized string of List<Dictionary<string,int>>, but I am struggling to get the data ...
0
votes
1answer
58 views

Getting Json Output from Byte Array

I just started a new project on WCF and to be honest I'm very new at this with limited knowledge. So what I'm trying to do is open a file that is stored in my computer (e.g. word, pdf, etc.) and ...
0
votes
0answers
34 views

Serialization of JSONObject in GWT and Java?

I want to serialize a JSONObject. Thus, I have the following interface that holds a simple String: public interface AtmosphereEvent { String getData(); void setData(String data); } Then I ...
0
votes
1answer
37 views

Serialize class to json as array

Using Json.Net 5.0.5 I would like to serialize this class [JsonObject(MemberSerialization.OptIn)] public class RingPoint { public double X { get; set; } public double Y { get; set; } ...
1
vote
3answers
56 views

Serialize JSON from List<T> and Show Values

I have a list of a custom object with two properties that needs to be serialized into JSON. Here is the object: public class IndexData { public string ColumnName { get; set; } public string Data ...
2
votes
1answer
37 views

ServiceStack, can an Action return an `IEnumerable<IWhateverInterface>`? [duplicate]

Edit: Please note my question is different from the one shown by the editor. I have no problem sending an IEnumerable or IDictionary in general but I have issues with sending them, containing ...
0
votes
0answers
12 views

Serialize a char enum as the character value in JSON

I have read similar posts on the subject: Enum Serialization Json vs XML Serializing enum values in JSON (C#) but my requirements / use case is slightly different so I am looking for some possible ...
0
votes
1answer
33 views

How to build ideal RESTful API for Entity Data model using JSON response?

I would like to understand how to proceed with creation of REST based WCF service and entity data model using JSON response. I have followed the instructions listed in : ...
1
vote
0answers
19 views

Serializing a list of object as dictionnary in DjangoRestFramework

Using django & django-rest-framework, I have the following model (this is simplified but it's all there): class Device(Model): #stuff class DeviceInformation(Model): device = ...
0
votes
1answer
33 views

upgrade to playframework 2.1.1 creates json deserialization problems with jeckson. might be connected with akka actor library?

After I upgraded an application to playframework 2.1.1 I get some deserialization issues in jackson (jackson-mapper-asl-1.9.10.jar and jackson-core-asl-1.9.10.jar) Normal tests executed from play ...
1
vote
2answers
39 views

<Django object > is not JSON serializable

I have the following code for serializing the queryset; def render_to_response(self, context, **response_kwargs): return HttpResponse(json.simplejson.dumps(list(self.get_queryset())), ...
1
vote
1answer
25 views

workaround for python json <= 2.7 datetime serializer not working

This is a little bit complicated but I try to explain as best as I can. I have a class called Event with two attributes: self.timestamp= datetime.now() self.data = this is a big dictionary I put ...

1 2 3 4 5 82
15 30 50 per page