This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 351587 - JSON Marshal - nillable/null support
Summary: JSON Marshal - nillable/null support
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 11:02 EDT by Denise Smith CLA
Modified: 2022-06-09 10:27 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes (37.91 KB, patch)
2011-07-19 10:54 EDT, Denise Smith CLA
no flags Details | Diff
Proposed test changes (194.31 KB, patch)
2011-07-19 10:55 EDT, Denise Smith CLA
no flags Details | Diff
Proposed changes (44.07 KB, patch)
2011-07-21 10:39 EDT, Denise Smith CLA
no flags Details | Diff
Proposed test changes (251.89 KB, patch)
2011-07-21 10:39 EDT, Denise Smith CLA
no flags Details | Diff
Updates for null and empty lists (28.90 KB, patch)
2012-02-14 13:56 EST, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denise Smith CLA 2011-07-08 11:02:06 EDT
When marshaling if the Marshal setting on nullpolicy is absent node we don't write to JSON.  If it is Nil we should write "null" and if it is set to empty we should write "address":{} for a complex thing an "null" for a simple thing.
Comment 1 Denise Smith CLA 2011-07-19 10:54:48 EDT
Created attachment 199907 [details]
Proposed changes
Comment 2 Denise Smith CLA 2011-07-19 10:55:05 EDT
Created attachment 199908 [details]
Proposed test changes
Comment 3 Denise Smith CLA 2011-07-21 10:39:22 EDT
Created attachment 200093 [details]
Proposed changes
Comment 4 Denise Smith CLA 2011-07-21 10:39:43 EDT
Created attachment 200094 [details]
Proposed test changes
Comment 5 Denise Smith CLA 2012-02-14 13:56:09 EST
Created attachment 210999 [details]
Updates for null and empty lists
Comment 6 Denise Smith CLA 2012-02-23 11:55:47 EST
Checked in as attached.
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:27:48 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink