So I have this string (line-breaks added):
var str = '[{"id":1,"type":"one","status":"pending","user_id":2},
{"id":2,"type":"two","status":"pending","user_id":14},
{"id":3,"type":"three","status":"queue","user_id":5},
{"id":4,"type":"four","status":"queue","user_id":8 }]';
What algorithm can I use to get all type values in one array? So the result would be "one", "two", "three", "four"
.