AnsweredAssumed Answered

Generic JSON Inbound Adapter - Source Code Available?  How about a Less Generic Version?

Question asked by mholzworth on Feb 1, 2017
Latest reply on Jun 19, 2018 by BLomas

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

Outcomes