-
Notifications
You must be signed in to change notification settings - Fork 14
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
Moving down into an empty object or list fails. #38
Comments
There isn't anything in the index for that position, so it is considered a failure. I don't think I have explicit documentation for this behaviour, I'll add some in. |
So, what I want to do is, go Or, rephrased, how can I check that my cursor is currently pointed at an object without parsing it all into a |
Which, looking at the code just now, is exactly what your |
That Currently there isn't a direct way to check if you're currently looking at an object or other specific type, without going to the To keep you moving, you could take advantage of the Alternatively, you are able to use the functions from the library that powers the cursor itself jsonTypeAt (unJCurs cursor) :: Maybe JsonType Using |
It seems that exposing |
Ha, we posted at the same time. 👍 |
I'll leave this open until I've patched |
@mankyKitty I've posted a patch. |
Fixed by #39 |
This isn't what I was expecting.
will fail on
"{}"
or"[]"
. I was expecting theD.down
to succeed, but then anyD.moveRight
to cause an error. Is this documented somewhere?The text was updated successfully, but these errors were encountered: