remove specified key from data container
Michal Švamberg <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I like data containers with json. I have a simple data container
'{ "name1": "aaaa", "name2": "bbbb", "name3": "cccc" }'
and I don't know how to remove the key 'name2' from the data container.
I tried a difference function but its returns only slist, not data
container. What is the best practice? Is posible using json_pipe, how?
Thanks
Michal Svamberg
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/81cedd1e-13fa-498b-95e4-32e64d2470c5n%40googlegroups.com.