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

how to delete all element keys for a map field? #65

Open
elvizlai opened this issue Dec 20, 2022 · 0 comments
Open

how to delete all element keys for a map field? #65

elvizlai opened this issue Dec 20, 2022 · 0 comments

Comments

@elvizlai
Copy link

Purpose

a :=  `{"records": {"1":{"id":"1","name":"a"},"2":{"id":"2","name":"b"}}}`

Delete(a, `records.*.id`)

should became:
{"records": {"1":{"name":"a"},"2":{"name":"b"}}}

but this records.*.id can not work.

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

1 participant