Mapping fixed sets of values
Use the MapValues and ValueMapping functions to map a enumerated values from an input structure to different enumerated values in an output structure.
Information noteNote: This example uses the improved MapValues dialog
box, which is available only if you have installed the R2024-04 Talend Studio
monthly update or a later one delivered by Talend.
About this task
You can use the following JSON sample to create your input
structure:
{
"customers": [
{
"id": "abc-123",
"name": "John Doe",
"tier": "Two"
},
{
"id": "def-456",
"name": "Jane Smith",
"tier": "One"
},
{
"id": "ghi-789",
"name": "Emily Stone",
"tier": "Three"
}
]
}
You can use the following JSON sample to create your
output structure.
{
"customers": [
{
"id": "",
"name": "",
"status": ""
}
]
}