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

I use jackson, which comes with spring boot, to convert from json to java object and vice versa, but I found that it takes a long time when json is huge, for example, for 2 MB json for related java object by to marshaling, can we use JSONITER, does it work well? how to replace JACKSON with JSONITER in spring boot, can it currently be used in your spring boot applications?

+8
source share
1 answer

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

0
source

Source: https://habr.com/ru/post/1686468/


All Articles