You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using FilteringParserDelegate to filter out a part of json, it throws the following exception when the input json is an empty list ("[]").
com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (byte[])"[]"; line: 1, column: 2]
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4688)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4561)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2823)
at com.alibaba.dapr.serialization.json.FilteringParserDelegateTest.testFilteringParserDelegateWithEmptyList(FilteringParserDelegateTest.java:36)
Interesting... empty array (and empty Object) are sort of edge cases since they are leaf values on their own.
Will need to think of what to do with them; almost certainly need to add 2 more callback methods in TokenFilter.
I hope to be able to fix this before 2.13.0 final but that may take time.
This is a follow up issue of #700 .
If using FilteringParserDelegate to filter out a part of json, it throws the following exception when the input json is an empty list ("[]").
Test case:
Jackson version: 2.12.3
The text was updated successfully, but these errors were encountered: