Mapping fixed sets of values
Use the MapValues and ValueMapping
functions to map enumerated values from an input structure to different enumerated
values in an output structure.
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": ""
}
]
}