Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I override Atlassian's instantiation of ObjectMapper?

David Maye Atlassian Team Mar 18, 2020

We are developing an Atlassian Confluence plugin (starting with RefApp, because it is a lighter app to develop on) using the Atlassian REST API plugin module (atlas-create-refapp-plugin-module, option 7 or atlas-create-confluence-plugin-module, option 9). (The front-end is Angular, so we are relying on the Rest API for the whole app.)

I need to customize the Jackson ObjectMapper. Here are two related Atlassian Community posts that are unanswered/only partially answered:

https://community.developer.atlassian.com/t/can-i-customize-the-jackson-objectmapper/31069

https://community.atlassian.com/t5/Jira-Core-questions/How-to-customize-Jackson-ObjectMapper/qaq-p/242012

Here is what I want access to:

Jackson Serialization Features:
https://github.com/FasterXML/jackson-databind/wiki/Serialization-Features

Jackson Deserialization Features:
https://github.com/FasterXML/jackson-databind/wiki/Deserialization-Features

I have dug through the code of Atlassian's REST API module:

https://bitbucket.org/atlassian/atlassian-rest/src/master/atlassian-rest-module/src/main/java/com/atlassian/plugins/rest/module/

How do I override Atlassian's instantiation of ObjectMapper and register it with the appropriate modules so that I can use my own Jackson ObjectMapper settings?

1 answer

@David Maye did you ever figure out how to do this?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you