-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#719] JSON-B extension. #720
base: master
Are you sure you want to change the base?
Conversation
extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbDeserializer.java
Outdated
Show resolved
Hide resolved
extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbSerializer.java
Outdated
Show resolved
Hide resolved
Great work! |
Oh, shouldn’t the profile name be "nonJDK7"? And did I, by accident, not rebase the PR? |
good point, java8plus, nonJDK7 or something like that would work |
Nah you already have "nonJDK7" in your root- |
22ec763
to
cb1f42e
Compare
Fixes #719:
This commit will add a JSON-B extension based on JSON-B specification 1.0.2.
Noteworthy
jdk.version
was set to8
.null
input is validated byjava.util.Objcets.requireNonNull
and will throw aNullPointerException
(which makes more sense anyway) instead of anIllegalArgumentException
.Strings.UTF_8
the JDK8-includedStandardCharsets.UTF_8
was used.intergation-tests/json/jsonb-yasson
andintergation-tests/json/jsonb-sth-else
).provided
) dependency on json-api (aka json-p for JSON-Parser) is needed at least for Johnzon, but probably for some Exceptions as well. Johnzon fails becausejavax.json.JsonException
is missing. But since json-api/json-p is a transitive dependency for json-bind-api (json-b) as well, this should be okay.Other notes
provided
scope is because of JakarteEE Application Server usage. Tested on OpenLiberty. But for JavaSE apps, users of this lib would need to include those by hand, as well as the implementation. This should go into the README.Tasks