Skip to content

Add Object Path selector #48

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

Merged
merged 5 commits into from
Nov 24, 2021
Merged

Conversation

klauspost
Copy link
Collaborator

@klauspost klauspost commented Nov 17, 2021

Search by path

It is possible to search by path to find elements by traversing objects.

For example:

	// Find element in path.
	elem, err := i.FindElement("Image/URL", nil)

Will locate the field inside a json object with the following structure:

{
    "Image": {
        "URL": "value"
    }
}

klauspost and others added 3 commits November 24, 2021 02:48
Co-authored-by: Harshavardhana <harsha@minio.io>
# Conflicts:
#	parsed_json.go
#	parsed_json_test.go
@klauspost klauspost merged commit 0c4d67f into minio:master Nov 24, 2021
@klauspost klauspost deleted the add-object-path-find branch November 24, 2021 12:53
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