JSON Unmarshaller Component

Unmarshals a JSON string into one or more objects that are returned as ObjectData objects on the output channel.  The unmarshalling process is controlled by the className parameter setting.

Data Governance

The output data items of the JSON Unmarshaller component are registered as being derived from its input data item.

Input Channels

data — A RawData object that can be unmarshalled into one or more Objects to be output on the default Output Channel

string – StringData object that can be unmarshalled into one or more Objects to be output on the default Output Channel

Output Channels

default — An ObjectData object containing unmarshalled objects from the input data.  If the input JSON contains multiple objects, they will be returned as individual ObjectData objects.

Parameters

className — (String) The name of the Java Class that the input data should be unmarshalled into.  This is normally one of the following:

  • java.lang.String — the incoming object is assumed to be a JSON encoded string, and a String object is returned.
  • java.util.List — the incoming object is assumed to be a list of JSON objects.  The list is parsed into multiple Map or String objects, one for each item in the list.  
  • java.util.Map — the incoming object is assumed to be a JSON object and is converted into a Map containing the keys and values form the JSON object.

itemsPerCall — (int)The maximum number of items to return for each invocation of this component.  If an input data item results in more than this number of items, such as when unmarshalling a list, the system will make multiple calls to the component until all the items have been returned before processing the next input item.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us