Java Community Process
Submit this Search
Press Room | Get Java Here |
Find JSRs
Submit this Search
JSRs by Platform
JSRs by Technology
JSRs by Stage
JSRs by Committee
List of All JSRs
My JCP
Register for Site
Use of JCP site is subject to the JCP Terms of Use and the Oracle Privacy Policy
JCP Info
About JCP
Program Overview
JCP Process Document
Calendar
JCP Members
Executive Committee
Elections
Get Involved
Overview
Becoming a JCP Member
Community Resources
Overview
Tutorials
JCP Podcasts
Spec Lead Guide
TCK Tool & Info
License Reference
Community News
News
Programs & Awards
Press Releases
Success Stories
FAQ
Contact Us
Ad Banner
JSR
Community
Expert Group
Summary | Proposal | Detail (Summary & Proposal) | Nominations
JSRs: Java Specification Requests
JSR 367: JavaTM API for JSON Binding (JSON-B)
Stage Access Start Finish
Final Release Download page 07 Jul, 2017
Final Approval Ballot View results 23 May, 2017 05 Jun, 2017
Proposed Final Draft Download page 19 Apr, 2017
Public Review Ballot View results 26 Jul, 2016 08 Aug, 2016
Public Review Download page 25 May, 2016 25 Jul, 2016
Early Draft Review Download page 20 Aug, 2015 19 Sep, 2015
Expert Group Formation 23 Sep, 2014 23 Jun, 2015
JSR Review Ballot View results 09 Sep, 2014 22 Sep, 2014
JSR Review 26 Aug, 2014 08 Sep, 2014
Status: Final
JCP version in use: 2.10
Java Specification Participation Agreement version in use: 2.0
Description:
A standard binding layer (metadata & runtime) for converting Java objects to/from JSON messages.
Expert Group Transparency:
Public Project Page
Public Communications
Issue Tracking
Team
Specification Leads
Dmitry Kornilov Oracle
Expert Group
Przemyslaw Bielicki Eugen Cepoi Datlowe
: Martin Vojtek
IBM
: Nathan Rauh Oracle
: Roman Grigoriadi Oracle
: Lukas Jungmann
Oracle
: Dmitry Kornilov Oracle
: Dmitry Kornilov Salvanos, Alexander
: Alexander Salvanos
Hendrik Saly Otavio Santana Singh, Inderjeet
: Inderjeet Singh
TmaxSoft, Inc.
: Kyung Koo Yoon Tomitribe
: Romain Manni-Bucau Zurowski, Gregor
: Gregor Zurowski
Contributors
Updates to the Original JSR
The following updates have been made to the original proposal:
2015.11.02:
The Spec Lead representative changed to Dmitry Kornilov.
Specification Lead: Dmitry Kornilov, Oracle
E-Mail Address: dmitry.kornilov@oracle.com
Telephone Number: +420 220 437 038
Fax Number: -
2015.07.14:
The schedule has been updated:
Q4 2015 Early Draft
Q1 2016 Public Review
Q3 2016 Proposed Final Draft
H1 2017 Final Release
Original Java Specification Request (JSR)
Identification | Request | Contributions | Additional Information
Section 1. Identification
Submitting Member: Oracle
Name of Contact Person: Martin Grebac
E-Mail Address: martin.grebac@oracle.com
Telephone Number: +420 221 438 700
Fax Number: +420 221 438 700
Specification Lead: Martin Grebac, Oracle
E-Mail Address: martin.grebac@oracle.com
Telephone Number: +420 221 438 700
Fax Number: +420 221 438 700
Note that this information has been updated from this original proposal:
Specification Lead: Dmitry Kornilov, Oracle
E-Mail Address: dmitry.kornilov@oracle.com
Telephone Number: +420 220 437 038
Fax Number: -
Initial Expert Group Membership:
Oracle
Supporting this JSR:
Werner Keil (JSON-P EG Member, JSR 363 Spec Lead)
Red Hat
Kyung Koo Yoon, TmaxSoft
Section 2: Request
2.1 Please describe the proposed Specification:
JSON has grown considerably as a portable means to represent objects and data. It is used by more and more systems and layers, ranging from web services to configuration data.
The recently established Java API for JSON Processing (JSON-P) specification defines a standard API for parsing and generating JSON data. The next logical step is to standardize a way to convert JSON into Java objects and vice versa. JSON-B will leverage JSON-P and provide a conversion layer above it.
JSON-B will be the standard binding layer for converting Java objects to/from JSON messages. A default mapping algorithm will be defined for converting existing Java classes to JSON. The default mappings can be customized through the use of Java annotations and will be leveraged by the JSON-B runtime to convert Java objects to/from JSON.
JSON-B will be useful to a number of the upper layers, such as JAX-RS. The requirements of these layers may be complex and include such features as bidirectional mappings and composite key support. Such requirements, as well as others that may be discussed, will be considered and incorporated as time permits.
As JAXB has been a successful platform for XML binding, JSON-B will have a similar feel. This will make it easier for JSON-B to be adopted by Java SE and Java EE developers.
2.2 What is the target Java platform? (i.e., desktop, server, personal, embedded, card, etc.)
This JSR is targeted for Java SE 7 or higher and Java EE 7 or higher platforms.
2.3 The Executive Committees would like to ensure JSR submitters think about how their proposed technology relates to all of the Java platform editions. Please provide details here for which platform editions are being targeted by this JSR, and how this JSR has considered the relationship with the other platform editions.
This JSR will work with Java EE 7 and will be targeted for inclusion in Java EE 8.
2.4 What need of the Java community will be addressed by the proposed specification?
There is currently a need in JAX-RS to convert objects to/from JSON messages. The community is currently forced to do one of the following:
Many services (Twitter, Google Geocoding API, etc) are offering data via JSON messages that Java developers need to interact with as Java objects. Some such as Twitter are even dropping the XML version of these APIs.
2.5 Why isn’t this need met by existing specifications?
Java API for JSON Processing (JSON-P) JSR
Java API for XML Binding (JAXB) JSR
The JSON databinding need is currently being addressed by the JAXB specification together with libraries that expose JSON messages via StAX APIs. However, this approach faces following problems:
Some of the JAXB mapping concepts have no JSON equivalent: namespaces, substitution groups, etc. Problems can arise when these mappings are used to produce JSON messages.
It is difficult to produce JSON messages with collections of size one. This is due to a difference in the way JSON and XML represent collections.
The JAXB approach assumes that the XML and JSON messages have same general structure and names.
2.6 Please give a short description of the underlying technology or technologies:
JSON-B will integrate with Java API for JSON Processing (JSON-P).
2.7 Is there a proposed package name for the API Specification? (i.e., javapi.something, org.something, etc.)
javax.json.bind
2.8 Does the proposed specification have any dependencies on specific operating systems, CPUs, or I/O devices that you know of?
No.
2.9 Are there any security issues that cannot be addressed by the current security model?
No.
2.10 Are there any internationalization or localization issues?
This specification uses the I18N support in Java SE.
2.11 Are there any existing specifications that might be rendered obsolete, deprecated, or in need of revision as a result of this work?
No.
2.12 Please describe the anticipated schedule for the development of this specification.
Q3 2014 Expert Group formed
Q1 2015 Early Draft
Q3 2015 Public Review
Q4 2015 Proposed Final Draft
Q3 2016 Final Release
2.13 Please describe the anticipated working model for the Expert Group working on developing this specification.
The primary means of communication will be email, with weekly conference calls and a possibility of face-to-face meetings.
2.14 Provide detailed answers to the transparency checklist, making sure to include URLs as appropriate:
Schedule will be available on the java.net project page for the JSR: https://java.net/projects/jsonb-spec/
Public mailing list will be used for comments (users@jsonb-spec.java.net)
Public mailing list will be used for comments (users@jsonb-spec.java.net)
No
Yes, the RI will be done under open source EclipseLink project, http://eclipselink.org. The TCK is not open source.
Terms of use of java.net: http://www.java.net/javanet-web-site-terms-use
What is the location of your publicly-accessible Issue list? In order to enable EC members to judge whether Issues have been adequately addressed, the list must make a clear distinction between Issues that are still open, Issues that have been deferred, and those that are closed, and must indicate the reason for any change of state.
JIRA is part of the JSR java.net project, and will be linked from there; https://java.net/jira/browse/JSONB_SPEC
What is the mechanism for the public to provide feedback on your JSR?
Public mailing list will be used for comments (users@jsonb-spec.java.net)
At the java.net project page for the JSR.
Yes, it will.
Public user list and project site will be used to provide updates on the JSR.
Technical feedback for individual parts of the JSR is welcome.
2.15 Please describe how the RI and TCK will de delivered, i.e. as part of a profile or platform edition, or stand-alone, or both. Include version information for the profile or platform in your answer.
The RI and TCK will be provided stand-alone, and will be included in the Java EE 8 RI and TCK.
2.16 Please state the rationale if previous versions are available stand-alone and you are now proposing in 2.13 to only deliver RI and TCK as part of a profile or platform edition (See sections 1.1.5 and 1.1.6 of the JCP 2 document).
N/A
2.17 Please provide a description of the business terms for the Specification, RI and TCK that will apply when this JSR is final.
Specification license
RI license
Commercial use
The RI will be available for commercial use under the CDDL 1.1 open source license, the GPLv2 with Classpath Exception open source license, or this RI license.
Non-Commercial use
The RI will be available for non-Commercial use under the CDDL 1.1 open source license or the GPLv2 with Classpath Exception open source license.
TCK license
Commercial use
The TCK will be available for commercial use under this TCK license.
Non-Commercial use
As required by the Java Specification Participation Agreement (JSPA), the TCK will be licensed at no charge without support to qualified not-for-profit. The Compatibility Testing Scholarship Program will verify such qualification. Support may also be provided at no charge with approval of the scholarship board. For more information, please refer to: http://www.oracle.com/technetwork/java/index-137188.html
2.18 Please describe the communications channel you have established for the public to observe Expert Group deliberations, provide feedback, and view archives of all Expert Group communications.
JSR java.net project will contain publicly available mailing lists, archives, and document download areas. For more details, please refer to the transparency section above.
2.19 What is the URL of the Issue Tracker that the public can read, and how does the public log issues in the Issue Tracker?
https://java.net/jira/browse/JSONB_SPEC/ URL will be also provided at the JSR java.net project page. JIRA use is described in JIRA documentation https://confluence.atlassian.com/display/JIRA/Creating+an+Issue
2.20 Please provide the location of the publicly accessible document archive you have created for the Expert Group.
https://java.net/projects/jsonb-spec/downloads. The URL will also be linked from the JSR project web page.
Section 3: Contributions
3.1 Please list any existing documents, specifications, or implementations that describe the technology. Please include links to the documents if they are publicly available.
JSON - http://json.org/ Open Source Object-to-JSON Implementations:
EclipseLink MOXy (http://www.eclipse.org/eclipselink/moxy.php)
Jackson (http://jackson.codehaus.org/)
Google GSON (http://code.google.com/p/google-gson/)
XStream (http://xstream.codehaus.org/)
Genson (http://code.google.com/p/genson/)
JSON-P (JSR-353) - http://jcp.org/en/jsr/detail?id=353
3.2 Explanation of how these items might be used as a starting point for the work.
There is now enough industry experience with object-to-JSON binding that the lessons learned from current implementations can be leveraged to form a Java standard that will add value to the Java stack.
Section 4: Additional Information (Optional)
4.1 This section contains any additional information that the submitting Member wishes to include in the JSR.
There are several open source object-to-JSON binding solutions available today. The leads of these projects will be invited to join this expert group.
Contact Us
© 2020, Oracle Corporation and/or its affiliates. Terms of Use. Privacy Policy. Trademarks
Oracle Corporation