Is it possible to remove an element by its value (and not its index) in a json array in mysql? For example:
# ['new', 'orange']
update waitinglist SET new = JSON_REMOVE("orange", '$') WHERE id=2;
# now it will be ['new']
If not, is there a better way to store this, so I can remove elements as needed? Also, there would never be duplicates in the array.