I can\'t find a similar question and I\'m a bit stuck. I have the following JSON array:
[ { \"Name\": \"element1\", \"Attributes\": [\"1\
If lodash is an option, you can easily get what you want:
> _.chain(foo).map('Attributes').flatten().uniq().value() ["1", "2", "3"]