We may have a need to augment the functionality of the provided Generic JSON Input Adapter. Is the source code available (or would we need to start from scratch? Does anybody know of a more full-featured JSON adapter? How about a way to solve the problem below using an out-of-the box processor?
Why would we need to do this? We are having difficulties mapping some of our input JSON which resides in an array where the property of interest is not necessarily at the same index, and rther requires the extraction of both the name and the value of the property from values in the array.
Example - We need to transform:
"accumulators" : [ {
"label" : "Odometer",
"value" : "5200.54",
"units" : "mi",
}, {
...
}, {
...
} ]
… to this:
"Odometer" : {
"value" : "5200.54",
"units" : "mi",
"type" : "Distance"
},
...
},
...
}
Thank You,
Mark