You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have these lines Function1<GsonBuilder, GsonBuilder> gsonSerializeNull = GsonBuilder::serializeNulls; JsonApprovals.verifyJson(jsonString, false, gsonSerializeNull);
Internally JsonApprovals will call JsonUtils.prettyPrint that creates a new Gson object without the configuration we passed, so we still get rid of nulls, that I still want.
Some suggested possible solutions:
Change the prettyPrint to accept the Gson customization function.
Change the prettyPrint function to consider removing nulls is messing up with json. ( I prefer this one )
Write the PrettyPrint function inside the JsonApproval module.
I am willing to do this as PR, if maintainers agree.
The text was updated successfully, but these errors were encountered:
I have these lines
Function1<GsonBuilder, GsonBuilder> gsonSerializeNull = GsonBuilder::serializeNulls; JsonApprovals.verifyJson(jsonString, false, gsonSerializeNull);
Internally JsonApprovals will call
JsonUtils.prettyPrint
that creates a new Gson object without the configuration we passed, so we still get rid of nulls, that I still want.Some suggested possible solutions:
I am willing to do this as PR, if maintainers agree.
The text was updated successfully, but these errors were encountered: