We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, amazing work 馃憤
I have the following json:
{ "people": [ {"name": "John", "addresses": [{"zip": 123}]} ] }
When I try to access the name property inside people, result.Paths() returns a slice of strings containing the path like this:
result := gjson.Get(string(json), field) fmt.Println(result.Paths(string(json)))
people.#.name [people.0.name]
people.#.name
[people.0.name]
However when I do the same for the zip inside the addresses array,
zip
addresses
people.#.addresses.#.zip
the result.Paths() no longer returns a slice of strings.
Is this a known limitation? If so, is there a workaround for this?
The text was updated successfully, but these errors were encountered:
Looks like there is a similar issue: #267
Sorry, something went wrong.
No branches or pull requests
Hi, amazing work 馃憤
I have the following json:
When I try to access the name property inside people, result.Paths() returns a slice of strings containing the path like this:
people.#.name
[people.0.name]
However when I do the same for the
zip
inside theaddresses
array,people.#.addresses.#.zip
the result.Paths() no longer returns a slice of strings.
Is this a known limitation? If so, is there a workaround for this?
The text was updated successfully, but these errors were encountered: