kristopolous / TickTick

JSON in your Bash scripts
http://9ol.es/TheEmperorsNewClothes.html
Other
579 stars 55 forks source link

how to delete a property from an object? #11

Closed coolaj86 closed 12 years ago

coolaj86 commented 12 years ago

In JavaScript:

delete obj["foo"]

In TickTick/Bash perhaps this would be more appropriate:

obj["foo"].delete()
kristopolous commented 12 years ago

unset name

kristopolous commented 12 years ago

woops ... that won't work. Let me think.

kristopolous commented 12 years ago

Fixed as of https://github.com/kristopolous/TickTick/commit/7537095b6508b824bc60e03a7f81df30ca3570ce

Synopsis:

Your .delete() suggestion was used. a new test tests/delete.sh has been added. Thanks!