bazaarvoice/jolt

handling null values on different key

mordfustang00 opened this issue · 0 comments

Hello. Good Day. I would like to ask regards the following scenario below:

input json:

{
"CarStats": {
"odo": {
"value": 1000
"unit": 0
},
"VehicleStats": {
"Distance": {
"FuelRange": {
"value": 100,
"unit": 3
},
"EVRange": {
"value": 200,
"unit": 3
}
}
}
},
"evstatus": null
}

would like to know if the following scenario is possible:

if evstatus = null, output will be FuelRange, otherwise EVRange.

Thanks.