Hello, I'm getting error in deserialize JSON content from given JSON 
content String.
It's working with Build apk but not working in signed apk.
Current code had been working in AGP 4.0.2 but after updating it to 
8.2.0,it is not working and throwing an error.

I'm using below dependencies:

implementation 'com.fasterxml.jackson.core:jackson-core:2.12.5'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.5'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.5'

Code:

String mapdata = readMapFile(); //this function returns string of json file.
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
MapGraph mapGraph = objectMapper.readValue(mapdata, MapGraph.class);

ProGuard rules: 

-keepattributes SourceFile,LineNumberTable
-keepclassmembers class * {
@com.fasterxml.jackson.annotation.JsonCreator *;
@com.fasterxml.jackson.annotation.JsonProperty *;
}
-keepnames class * { *; }

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jackson-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/70728904-1e1d-42ff-a587-b443753385dbn%40googlegroups.com.

Reply via email to