NextGen Knowledge Center

JSON Data Type

This data type allows seamless integration between JSON messages and the filter/transformer scripts which are JavaScript-based. When using the JSON data type, the msg / tmp variables will be a standard JavaScript object, as opposed to an E4X XML object which some other data types use. Since JSON is a very lightweight data format, and the transition from String to JavaScript Object is all handled automatically, no serialization properties are needed.

Batch Properties

NameDefault ValueDescription
Split Batch ByJavaScriptSelect the method for splitting the batch message. This option has no effect unless Process Batch is enabled in the Source Settings. The following options are available:
JavaScript Enter JavaScript that splits the batch, and returns the next message. This script has access to 'reader', a Java BufferedReader, to read the incoming data stream. The script must return a string containing the next message, or a null/empty string to indicate end of input. For additional information, see JavaScript Batch Script.