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 object path parse error #301

Merged
merged 1 commit into from Nov 22, 2022
Merged

fix object path parse error #301

merged 1 commit into from Nov 22, 2022

Conversation

svher
Copy link
Contributor

@svher svher commented Nov 21, 2022

source json:

{
  "name": {"first": "Tom", "last": "Anderson"},
  "age":37,
  "children": ["Sara","Alex","Jack"],
  "fav.movie": ["Deer Hunter"],
  "friends": [
    {"first": "Dale", "last": "Murphy", "age": 44, "nets": ["ig", "fb", "tw"]},
    {"first": "Roger", "last": "Craig", "age": 68, "nets": ["fb", "tw"]},
    {"first": "Jane", "last": "Murphy", "age": 47, "nets": ["ig", "tw"]}
  ]
}

query: fav\.movie.[0]
expected: ["Deer Hunter"]

@tidwall tidwall merged commit f37cc44 into tidwall:master Nov 22, 2022
@tidwall
Copy link
Owner

tidwall commented Nov 22, 2022

lgtm. Thanks!!

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

2 participants