Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359252 - JSON marshal a property of type Class should be in quotes but is not
Summary: JSON marshal a property of type Class should be in quotes but is not
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: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 11:07 EDT by Denise Smith CLA
Modified: 2022-06-09 10:05 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (6.48 KB, patch)
2011-09-28 11:42 EDT, Denise Smith CLA
no flags Details | Diff
Proposed changes (10.09 KB, patch)
2011-09-28 15:04 EDT, 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-09-28 11:07:34 EDT
public class SomeClass{
   public Class testClassProp;
}

Resulting JSON looks like this:
{"someClass" : {"testClassProp" : java.lang.String}}

But should look like this:
{"someClass" : {"testClassProp" : "java.lang.String"}}
Comment 1 Denise Smith CLA 2011-09-28 11:42:18 EDT
Created attachment 204201 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-09-28 15:04:26 EDT
Created attachment 204214 [details]
Proposed changes
Comment 3 Denise Smith CLA 2011-09-29 11:55:43 EDT
Checked in changes to support the variables of type Class to be quoted.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:05:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink