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](https://docs.cloud.google.com/mainframe-connector/docs/api-command-reference.md.txt#datapath)
option with the [`qsam encode`](https://docs.cloud.google.com/mainframe-connector/docs/api-command-reference.md.txt#qsam_encode)
or [`qsam decode`](https://docs.cloud.google.com/mainframe-connector/docs/api-command-reference.md.txt#qsam_decode) commands.
You must define the JSON configuration as specified in section [JsonConfiguration](https://docs.cloud.google.com/mainframe-connector/docs/json-configuration.md.txt#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 |
|---|
| ``` { "date_format": string, "encoding": string, "omit_null_fields": boolean, "timestamp_format": string } ``` |

| Fields ||
|---|---|
| `date_format` | `string` Specify the format for the date. The default format is `yyyy-MM-dd`. |
| `encoding` | `string` Specify the character encoding to use for the JSON output. The default is `UTF-8`. |
| `omit_null_fields` | `boolean` Set to `true` if you want `null` fields to be omitted from the JSON output. |
| `timestamp_format` | `string` Specify the format for the timestamp. The default value is `DateTimeFormatter.ISO_INSTANT`. |