[Mono-bugs] [Bug 615801] New: DataContractJsonSerializer does not set class members to null
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jun 21 02:59:16 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=615801
http://bugzilla.novell.com/show_bug.cgi?id=615801#c0
Summary: DataContractJsonSerializer does not set class members
to null
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Class Libraries
AssignedTo: gnorton at novell.com
ReportedBy: Manfred at pp-p.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)
chromeframe/5.0.375.62
Deserializng an object (containing other objects) with
DataContractJsonSerializer the contained objects are not set to null although
they have "null" as value in the data.
Reproducible: Always
Steps to Reproduce:
1. Build 2 simple classes (ClassA - ClassB)
2. Add ClassB as a member to ClassA
3. Serialize a ClassB object where the ClassA object is null
4. Deserialize it and recoginize that the ClassB member is not null
Actual Results:
Deserializing string like
this{"IntVal":0,"ClassAMember":null,"StringVal":"something"}
instanciates the call and "ClassAMember" is NOT null
Expected Results:
Deserializing string like
this{"IntVal":0,"ClassAMember":null,"StringVal":"something"}
should result in an instanciates where "ClassAMember" IS NULL
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list