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

Allow using strings as json paths #448

Closed
ayZagen opened this issue Sep 12, 2023 · 2 comments
Closed

Allow using strings as json paths #448

ayZagen opened this issue Sep 12, 2023 · 2 comments

Comments

@ayZagen
Copy link

ayZagen commented Sep 12, 2023

Currently vrl functions accepts query paths defined in jq like statements. However using strings as json paths is the most common way to interact with jsons

By accepting strings we could write functions like this:

fields = [".source_type", ".kubernetes.pod_ip"]
for_each(fields) -> |_index, value| {
  del(value)
}

Strictly related to #25

@jszwedko
Copy link
Member

Thanks for opening this new issue @ayZagen ! I think it is the same as #67 . Would you agree?

@ayZagen
Copy link
Author

ayZagen commented Sep 12, 2023

yes, thas the same issue. closing in favor of #67 😀

@ayZagen ayZagen closed this as completed Sep 12, 2023
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

No branches or pull requests

2 participants