Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Object Path selector #48

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"
    }
}

parsed_object.go Outdated Show resolved Hide resolved
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants