In Spring boot, is it possible to have many different versions of gson or Jackson http converters and use them dynamically whenever I need a specific type of data format?
Spring Boot http message converter serialize null sometimes
447 Views Asked by Kingj At
1
There are 1 best solutions below
Related Questions in JSON
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in SPRING-BOOT
- Timing Issue with Spring Boot Annotation Configuration
- LightAdmin - Customise parsing DateTime with app timezone
- Creating distribution with repackaged spring boot jar using gradle application plugin
- Spring Boot MVC non-role based security
- Add JVM args to spring boot application
- The method and() is undefined for the type HttpSecurity
- swagger ui not working for swagger version 2
- Spring IO Platform 2.0 - Themes/Changes?
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- Spring boot check external service status on boot
- Running a specific spring batch job amongst several jobs contained withing a spring boot fat jar
- Adding security to rest api service built with Spring Boot app
- Spring Redirecting from Http to Https Breaks Rest Controller Test
- Service not starting using Spring-boot during integration tests
- Spring Boot Actuator Health Returning DOWN
Related Questions in GSON
- Joda DateTime Json date format issue
- JSON Nested Objects
- Parse nested Json with GSON
- Unable to parse JSON file using GSON library
- Consuming ASP.NET Web Api from Android HttpUrlConnection and Gson
- Using Gson to serialize strings with \n in them
- In Gson, how can I deserialize a Map of Lists of arbitrary classes?
- JSON Array Of Entries to POJO
- How can I deserialize a JSON object but keep a specific field as a String instead of a nested object?
- Deserializing Generic Types from a ClassLouder class with GSON
- Fields not deserialized when instance creator is registered with gson
- Gson not deserializing JSON data
- json Arrays, START_ARRAY or BEGIN_ARRAY
- Creating GSON object error
- How to parse JsonObject to List<MyClass> using gson
Related Questions in HTTP-MESSAGE-CONVERTER
- Spring rest template to convert response with custom Content-Type
- Mapping external API json response value from a redirected html url to POJO
- Could not extract response: no suitable HttpMessageConverter found for content type [application/octet-stream]
- How to use AbstractMessageConverter using RestTemplate
- no suitable HttpMessageConverter found for response type [class java.lang.Object] and content type [multipart/form-data;boundary=XXX;charset=UTF-8]
- How do I retrieve Resource object using restTemplate in Spring Boot?
- Could not extract response: no suitable HttpMessageConverter found for response type and content type [binary/octet-stream]
- SpringBoot Rest Controller Supporting both xml and json with JAXB Pojos + Custom Http Message Converters + Swagger-UI
- How to serialize an Instant without nanoseconds using Spring Boot with Jackson?
- Spring Boot / RabbitMQ different content_type with Jackson2JsonMessageConverter
- Conflicting/ambiguous property name definitions while serializing
- How config gson in Spring boot?
- Cannot find a deserializer for non-concrete Map type [map type; class javafx.collections.ObservableMap, [simple type, class java.lang.Object]
- Spring boot makes warning log HttpMessageNotWritableException from the reason that might come from WebSocket
- Error Caused by: java.lang.IllegalArgumentException: Unable to resolve Configuration with the provided Issuer of
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You have to create two beans for
GsonHttpMessageConverterthe first one with settings by default and second one with setting for serializing nulls by following way:And when you want to use one of them then call
@Qualifier("someBean")annotation. by following way: