Creating a JSON Input Data Source

The JSON connector allows the retrieval and processing of JSON files, either from a disk, a Text, or from a defined URL.

 

  1. In the New Data Source page, select Input > Json in the Connector drop-down list.
  2. Select the JSON File Source.
  3. Select either the period (.) or comma (,) as the Decimal Separator.
  4. Set the File Encoding to use:

    • UTF-8
    • UTF-16
    • UTF-32
    • US-ASCII
    • Windows-1252
  5. Click to fetch the Record Paths then select one.
  6. Set the Array Handling setting to control how the data table will be created and to accommodate the array of values. Can be any of the following:
    • Add Rows (default) - one row will be created for each value in the array
    • Add Columns - one column will be created for each value in the array
    • Concatenate - one column will be created for all values in the array, concatenated with a delimiter character
  7. Click  to the fetch the schema based on the connection details. This populates the list
    of columns with the data type found from inspecting the first ‘n’ rows of the input data source.
  8. You can also opt to load or save a copy of the column definition.
  9. Click to add columns and specify their properties:
    Property Description

    Name

    The column name of the source schema.

    Json Path

    The Json Path of the source schema.

    Type

    The data type of the column. Can be a Text, Numeric, or Time.

    Date Format

    The format when the data type is Time.

    Enabled

    Determines whether the message field should be processed.

    To delete a column, check its  or all the column entries, check the topmost , then click .

  10. Click  . The new data source is added to the Data Sources list.


 

(c) 2013-2024 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support