bluelinelabs / LoganSquare

Screaming fast JSON parsing and serialization library for Android.
Apache License 2.0
3.21k stars 306 forks source link

Add support to exclude serializing empty Strings #175

Open jeffdcamp opened 8 years ago

jeffdcamp commented 8 years ago

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)