how to replace jackson in spring boot application as automatic marshaler and unmarshaler with jsoniter

Viewed 847

I am using jackson , which come along with spring boot , to convert from json to java object and vice versa , but i found that this is taking much time when json is huge in size like for 2 MB json to related java object by marshaling , can we use JSONITER , does it perform well ? how to replace JACKSON with JSONITER in spring boot , can any at present using this in your spring boot applications ?

1 Answers

Spring Boot has many things listed in .yml / .properties files, but what is actually used in runtime is determined by which classes are found on classpath. So, assuming you are using Maven or Gradle, to replace one provider for json capability with another just specify explicitly dependency for what you need and exclude transitive dependency for Jackson that is brought by one of spring-boot-* ones.

Related