bluelinelabs / bluelinelabs/LoganSquare

Add support to exclude serializing empty Strings

Open
#175 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
303
PR merge metrics
No merged PRs in 30d

Description

Jackson and Gson both support excluding empty Strings when serializing

Jackson Example:
mapper.setSerializationInclusion(Include.NON_NULL)
or
@JsonInclude(Include.NON_NULL)

I cannot seem to find a way of doing this with LoganSquare...

It would be nice to set this on a class level (via annotation) and/or by the LoganSquare.JSON_FACTORY (so ALL @JsonObject classes will be included)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.