File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/danubetech/keyformats/jose Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11package com .danubetech .keyformats .jose ;
22
33import com .fasterxml .jackson .annotation .JsonIgnore ;
4+ import com .fasterxml .jackson .annotation .JsonInclude ;
45import com .fasterxml .jackson .core .JsonProcessingException ;
56import com .fasterxml .jackson .databind .ObjectMapper ;
67import org .apache .commons .codec .binary .Base64 ;
@@ -30,7 +31,7 @@ public JWK() {
3031 * Serialization
3132 */
3233
33- private static final ObjectMapper objectMapper = new ObjectMapper ();
34+ private static final ObjectMapper objectMapper = new ObjectMapper (). setSerializationInclusion ( JsonInclude . Include . NON_NULL ) ;
3435
3536 public static JWK fromJson (String json ) throws IOException {
3637 return objectMapper .readValue (json , JWK .class );
You can’t perform that action at this time.
0 commit comments