In JSON strings, empty Dictionary aren't handled when deserializing to nullable fields

Aug 14, 2009 at 4:38 PM

I have a JSON string like this

{"farmlandStatus":[{"a":18,"b":1,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":0,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1249693002,"r":1249719986},{"a":18,"b":1,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":0,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1249693003,"r":1249702004},{"a":18,"b":1,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":0,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1249693004,"r":1249693004},{"a":23,"b":6,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":0,"k":36,"l":21,"m":21,"n":{"76181":1,"675086592":1,"417663804":1,"327192340":1,"10059154":1,"45997947":1,"450016333":1,"35368874":1,"85460394":1,"81557219":1,"181021257":1,"282934523":1,"114783096":1}]}

 

I created the object  farmlandstatus and

the n is  Dictionary<string,int>

but when The n  in the string is "[]" that it can not handle.

pls help ^_^.