e.g., from the data below I need to select names based on the preference:
[ { "first_name": "Waseem", "last_name": "Khan", "preferred": "first" }, { "first_name": "Jawad", "last_name": "Hussain", "preferred": "last" } ]
should return to:
[ { "name": "Waseem" }, { "name": "Hussain" } ]
1.4m articles
1.4m replys
5 comments
56.9k users