This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 411378 - JSON-P - Unmarshal from javax.json.stream.JsonParser
Summary: JSON-P - Unmarshal from javax.json.stream.JsonParser
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Denise Smith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 405161 411379
  Show dependency tree
 
Reported: 2013-06-21 10:26 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:04 EDT (History)
3 users (show)

See Also:


Attachments
Proposed patch (52.49 KB, patch)
2014-11-20 06:11 EST, Iaroslav Savytskyi CLA
no flags Details | Diff
Reviewed patch (55.08 KB, patch)
2014-11-26 06:44 EST, Iaroslav Savytskyi CLA
marcel.valovy: review+
voytoo: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2013-06-21 10:26:09 EDT
Add support for unmarshalling from a JsonParser.  For this we should a JsonParserSource that implements javax.xml.transform.Source.  This new source will then be able to be used with the following unmarshal methods

Unmarshaller.unmarshal(Source)
Unmarshaller.unmarshal(Source, Class)

This input should be added to our high level JSON test so that all the use cases are covered.
Comment 1 Blaise Doughan CLA 2013-06-21 10:34:32 EDT
We must be sure to test use cases where the JsonParser is at the beginning of the document and cases where we unmarshal from the middle of the document.  Below is an example of the concept using StAX with MOXy's XML-binding:

- http://blog.bdoughan.com/2012/08/handle-middle-of-xml-document-with-jaxb.html
Comment 2 Iaroslav Savytskyi CLA 2014-11-20 06:11:20 EST
Created attachment 248781 [details]
Proposed patch

Initial implementation
Comment 3 Iaroslav Savytskyi CLA 2014-11-26 06:44:08 EST
Created attachment 248948 [details]
Reviewed patch
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:04:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink