johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [johnzon] mkarg commented on issue #45: [JOHNZON-277] Fails to deserialize inner empty JSON block {} at OBJECT_START
Date Fri, 20 Sep 2019 16:13:47 GMT
mkarg commented on issue #45: [JOHNZON-277] Fails to deserialize inner empty JSON block {}
at OBJECT_START
URL: https://github.com/apache/johnzon/pull/45#issuecomment-533618429
 
 
   The array case actually cannot happen. The `switch` is invoked only from `deserialize`,
which in turn is only valid to be invoked for cursor standing at `KEY_NAME` or `START_OBJECT`.
So `END_ARRAY` can never happen. If it *does* happen, cursor was at invalid location when
calling, hence it is more correct to throw exception than to return an empty array.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message