csaboka commented on pull request #74:
URL: https://github.com/apache/johnzon/pull/74#issuecomment-877593430


   > @csaboka it is mainly about ensuring the error message references it is 
about the key and not just a "string" (which can be a value), think we should 
harness that
   
   I've added a check to make sure we get `KEY_NAME` in the object stream 
(unless it's `END_OBJECT` and we're done). I couldn't come up with a good test 
case for it, though. All the cases I could think of where `next()` would return 
something other than `KEY_NAME` ended up failing with a `JsonParsingException` 
instead.


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@johnzon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to