get only one type from json code example Example: get only one type from json data.map(function(item) { return item.name });