I want to use Rxjs map() method to switch values between two json objects. Or if there are any better rxjs methods I am open to suggestions
For example if I have two json objects:
[{"firstname":"abc","lastname":"bcd"},{"firstname":"xyz","lastname":"zzz"}]
How do I for example switch the values of first name from both json objects in the array as well as the lastnames? I am very new to rxjs!
Thanks!