You can configure the Mainframe Connector transcoder's JSON formatting by adding the required configuration in a JSON file,
and specifying this file using the --input-parameter json-dialect=DataPath
option with the qsam encode
or qsam decode commands.
You must define the JSON configuration as specified in section JsonConfiguration.
This page describes the various JSON parameters you can configure as input parameters for transcoding.
The JsonConfiguration object contains all JSON encoder and decoder configuration options.
JsonConfiguration
The JsonConfiguration object lets you configure the JSON decoder and encoder configuration.
| JSON representation |
|---|
{ "omit_null_fields": boolean, "date_format": string, "timestamp_format": string, "encoding": string |
| Fields | |
|---|---|
omit_null_fields |
Set to |
date_format |
Specify the format for the date. The default format is |
timestamp_format |
Specify the format for the timestamp. The default value is |
encoding |
Specify the character encoding to use for the JSON output.
The default is |