Я новичок в потоках MuleSoft и Mule.
Я хочу объединить столбцы fromairport
и toairport
. Результат должен быть в таких столбцах, как:
fromairport toairport
MUA LAX
MUA CLE
MUA SFO
.....
Я преобразую следующее json:
[
{
"planeType": "Boeing 787",
"code2": "0001",
"takeOffDate": "2016-01-20T00:00:00",
"code1": "rree",
"fromAirport": "MUA",
"price": 541,
"seatsAvailable": 0,
"toAirport": "LAX",
"ID": 1,
"airlineName": "American Airlines",
"totalSeats": 200
},
{
"planeType": "Boeing 747",
"code2": "0123",
"takeOffDate": "2016-01-25T00:00:00",
"code1": "eefd",
"fromAirport": "MUA",
"price": 300,
"seatsAvailable": 7,
"toAirport": "CLE",
"ID": 2,
"airlineName": "American Airlines",
"totalSeats": 345
},
{
"planeType": "Boeing 777",
"code2": "0192",
"takeOffDate": "2016-01-20T00:00:00",
"code1": "ffee",
"fromAirport": "MUA",
"price": 300,
"seatsAvailable": 0,
"toAirport": "LAX",
"ID": 3,
"airlineName": "American Airlines",
"totalSeats": 300
}
]