Jackson ProGuard rules

Jackson – standard JSON library for Java or JVM platform in general.

More than that, Jackson is a suite of data-processing tools for Java (and the JVM platform), including the flagship streaming JSON parser / generator library, matching data-binding library (POJOs to and from JSON) and additional data format modules to process data encoded in Avro, BSON, CBOR, CSV, Smile, (Java) Properties, Protobuf, XML or YAML; and even the large set of data format modules to support data types of widely used data types such as Guava, Joda, PCollections and many

ProGuard rules for Jackson

ProGuard removes unused classes, attributes, and it optimizes the rest program code. By default, short names like 'a', 'b', etc. are used as obfuscated names. Specify the following ProGuard rules in proguard-rules.pro file.

# Jackson
-keep @com.fasterxml.jackson.annotation.JsonIgnoreProperties class * { *; }
-keep class com.fasterxml.** { *; }
-keep class org.codehaus.** { *; }
-keepnames class com.fasterxml.jackson.** { *; }
-keepclassmembers public final enum com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility { 
    public static final com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility *;
}

# General
-keepattributes SourceFile,LineNumberTable,*Annotation*,EnclosingMethod,Signature,Exceptions,InnerClasses

For more information about Jackson please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules