Skip to content
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

Fix jsonPointer key check #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangxi761
Copy link

in this case , JsonPointer.isArrayIndex may cause NumberFormatException which jsonpointer is /xxx/119962931388000000000000000007

{
    "119962931388000000000000000007": "851905683938304000"
}

@wangxi761
Copy link
Author

things aren't as simple as they seem,JsonPointer is a standalone container , It does not contain type information。

{
    "1": "851905683938304000"
}

jsonpointer is /1 , but we still can't say this is a array index or object key

to handle this, we need to add some additional information to it to determine whether this is the index of array or the key of the object?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant