Replacement for jackson-mapper-asl.jar?

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Replacement for jackson-mapper-asl.jar?

Post by Patrik » Wed Apr 14, 2021 5:45 pm

Hi,

we just upgraded form WebAuthor 22.1 to 23.1 and my custom plugin is no more working since I used objects from the library jackson-mapper-asl.jar for Json-String-conversion (e.g. org.codehaus.jackson.JsonNode and org.codehaus.jackson.map.ObjectMapper).

I'd like to avoid adding additional libraries and only use those from the oxygen-sdk. What objects do you use in your code for Json-string-conversion instead now?

Thanks and regards,
Patrik

Gabriel Titerlea
Posts: 55
Joined: Thu Jun 09, 2016 2:01 pm

Re: Replacement for jackson-mapper-asl.jar?

Post by Gabriel Titerlea » Wed Apr 14, 2021 6:46 pm

Hello,

Web Author 23.1+ depends on com.fasterxml.jackson 2.11.1 [1] instead of org.codehaus.jackson.
You will find most of the previous classes under different package names: com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.JsonNode.

Best,
Gabriel

[1] https://github.com/FasterXML/jackson

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Replacement for jackson-mapper-asl.jar?

Post by Patrik » Thu Apr 15, 2021 10:04 am

Hi Gabriel,

thanks, this solved it for me! :)

Best regards,
Patrik

Post Reply