Skip to main content

JSON Input

Description:

JSON input is a step in the Input Plugin for Process Studio Workflows. The JSON Input step plugin step can read relevant portions out of JSON structures dynamically f rom f ield values in the stream or parameters, referring to f iles or Urls. Secondly, users can also define f iles and urls as static values. The step outputs portions of the JSON structures as rows.

Configurations:

No.Field NameDescription
File Tab:Here you enter basic connection information for accessing a resource.
1Step nameSpecify the name of this step as it appears in the workflow workspace.
2Source is from a previous stepEnable checkbox to retrieve the source from a previously defined field.
3Select fieldChoose the field containing the source file from a dropdown list.
4Use field as file namesEnable checkbox if source is a filename.
5Read source as URLEnable checkbox if source should be accessed as a URL.
6Do not pass field downstreamEnabling checkbox will not pass this field downstream. This improves performance and memory utilization with large JSON fields.
7File or directorySpecify the location of the source if the source is not defined in a field.
8Regular expressionSpecify a regular expression. All filenames that match this regular expression are selected if a directory is specified.
9Exclude regular expressionSpecify a regular expression. All filenames that match this regular expression are excluded if a directory is specified.
10Button: Show filenameClick Button to display the file names selected.
Content Tab:Enables you to configure which data to collect.
1Ignore empty fileEnable checkbox to skip empty files---when unchecked, instances of empty files causes the process to fail and stop.
2Do not raise an error if no filesEnable checkbox to avoid failure when there is no file to process. When unchecked the workflow to fails when there is no file to process.
3Ignore missing pathWhen unchecked, causes the workflow to fail when the JSON path is missing---then checked, avoids failure when there is no JSON path.
4LimitSets a limit on the number of records generated from the step when set greater than zero.
5Include filename in outputAdds a string field with the filename in the result.
6Rownum in outputAdds an integer field with the row number in the result.
7Add files to result files name If checked, adds processed files to the result file list.
Fields Tab:
1NameSpecify the name of the output field.
2Attribute Specify the attribute to read.
3TypeSpecify the data type to convert to.
4FormatSpecify the format or conversion mask to use in the data type conversion.
5LengthSpecify the length of the output data type.
6PrecisionSpecify the precision of the output data type.
7CurrencySpecify the currency symbol to use during data type conversion.
8DecimalSpecify the numeric decimal symbol to use during data type conversion.
9GroupSpecify the numeric grouping symbol to use during data type conversion.
10Trim typeSpecify the type of trimming to use during data type conversion.
11RepeatChoose from (Y/N). Specify Y to Repeat the column value of the previous row if the column value is empty (null).
Additional output fields Tab:
1Short filename fieldSpecify the field name for short filename.
2Extension fieldSpecify the field name for filename extension.
3Path fieldSpecify the f ield name for file path.
4Size fieldSpecify the the size of the file.
5Is hidden fieldSpecify fromY/N. Y to hide field. Default is N.
6Last modification fieldSpecify the field name for the last modification.
7Uri fieldSpecify the fieldname for Uri (e.g. file:///C:/temp/file.txt).
8Root uri fieldSpecify the f ieldname for Root Uri (e.g. file:///C:/).