Skip to content

Commit

Permalink
fix: serialize null values
Browse files Browse the repository at this point in the history
The GSon library do not include by
default the null values, but this
can be need in som plugin like
btcj4cli.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Jan 13, 2023
1 parent 89532d1 commit f00561f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jrpc/service/converters/JsonConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public JsonConverter() {
CLightningFeeRate.class, new FeeRateTypeAdapter(gsonBuilder.create()));
gsonBuilder.registerTypeAdapter(
BitcoinUTXO.class, new BitcoinUTXOTypeAdapter(gsonBuilder.create()));
this.gson = gsonBuilder.create();
this.gson = gsonBuilder.serializeNulls().create();
}

@Override
Expand Down

0 comments on commit f00561f

Please sign in to comment.