I have a json data like this:
var data = [{ "RM_Name": "Cloud Strife", "Division": "Avalanche", "RM_Phone": "No Phone", "RC_Name": "No RM", "RC_Phone": "No Phone", "States_Covered": "Midgar,Nibelheim" }, { "RM_Name": "Clint Eastwood", "Division": "Hollywood", "RM_Phone": "No Phone", "RC_Name": "No RC", "RC_Phone": "No Phone", "States_Covered": "Gran Torino" }, { "RM_Name": "Barret Wallace", "Division": "Avalanche", "RM_Phone": "No Phone", "RC_Name": "Barry Allen", "RC_Phone": "No Phone", "States_Covered": "North Corel" }, { "RM_Name": "Tifa Lockheart", "Division": "Avalanche", "RM_Phone": "No Phone", "RC_Name": "Aeris Gainsborough", "RC_Phone": "No Phone", "States_Covered": "Sector 7" }]; Now I want to create a new array consist of RM_Name and RC_Name like this so the output would be like this:
[Cloud Strife,Clint Eastwood,Barret Wallace,Barry Allen,Tifa Lockheart,Aeris Gainsborough] How can I do that? I have tried using $.merge(). But I think the output is wrong. Any help is greatly appreciated.
No RMandNo RCentries, should these be ignored?