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

Add RFC6901 json pointer support #67

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

Conversation

leonchen83
Copy link

@leonchen83 leonchen83 commented Feb 24, 2022

Now Path can convert RFC6901 style path to json path
for example
Path.ofJosnPointer("/abc/0") can convert to Path.of(".[\"abc\"].[0]")

the limitation of JsonPointer path is /abc/0 always convert to .[\"abc\"].[0] and not .[\"abc\"].[\"0\"]
if users want to use .abc.0, they should use Path.of(".abc.0") instead of Path.ofJosnPointer("/abc/0")

now Path can convert RFC6901 style path to json path
for example
Path.ofJosnPointer("/abc/0") can convert to Path.of(".abc.[0]")
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.

2 participants