Ignore malformed JSON fields #159
-
Hi All, Below is sample error I get when error is thrown
_ I tried using the JSONIgnoreProperty but that for ignoring any new fields, I am looking in case the data type does not match and it throws MismatchedInputException. I tried to look in but did not find any direct solution . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In such cases you will probably want to register |
Beta Was this translation helpful? Give feedback.
-
Thanks that was helpful.
Regards,
Manish
…On Wed, 12 Apr, 2023, 9:39 pm Tatu Saloranta, ***@***.***> wrote:
In such cases you will probably want to register
DeserializationProblemHandler and catch specific failures, skip content
(for extra ones); return null for missing ones. This will allow process
to continue.
—
Reply to this email directly, view it on GitHub
<#159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5XLKCSELFDFUGZ3KOKJ3EDXA3HSDANCNFSM6AAAAAAWYU5IWI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
In such cases you will probably want to register
DeserializationProblemHandler
and catch specific failures, skip content (for extra ones); returnnull
for missing ones. This will allow process to continue.