-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialization from "{}" to java.lang.Object causes "out of END_OBJECT token" error #989
Comments
With Jackson 2.6, or some other version? |
I've updated the first message with a link to source, yes, I'm using 2.6.3 |
Thanks! I'll have a look. |
If someone need a hot fix, currently I've found this solution, but it's a little complicated with an extra custom deserializator
|
Hmmh. This sounds quite familiar actually... like #941. |
Yes, it's look like the same, but ObjectNode expects just "{...}" some object structure, and it doesn't accept any array or just text value. |
What I meant is that the underlying problem is the same: due to buffering needed by |
Thank you for reporting this! Just fixed, will be included in 2.6.4, 2.7.0 |
@cowtowncoder Thank you too! |
I believe I'm still having this issue, though with the SmileFactory. |
Not for me, even on 2.6.4, but it may be a different case. Let me find a stack trace:
|
FWIW, the same file loads fine in 2.5.5. It's a large generic Map<String,Object>. |
I'm not a developer of these projects, but you have a problem with another library jackson-dataformat-smile. |
Thanks, I'll file an issue there. |
Hi, I've faced with a problem that is too similar this one #941. I expect that "{}" will be parsed correctly to empty Map when I'm using
@JsonCreator
I've found that this case is invalid https://github.com/FasterXML/jackson-databind/blob/jackson-databind-2.6.3/src/main/java/com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.java#L272, but why?
Here is the minimum code to reproduce:
Output:
The text was updated successfully, but these errors were encountered: