Inhaltsverzeichnis



JSON

You use the JSON write component to write messages to JSON-Format.

Configurations

In addition to the standard settings such as name and character encoding, you can set the following options for the JSON file:

Formatting date values

Date values are exported in the format yyy-MM-ddTHH:mm:ss.FFFFFFFK. Using the MapFormat attribute (see Standard Object Attributes) you can change the format. E.g. with

the date values are output in year-month-day format. This only applies if the Legacy Json Writer has not been configured under TypeName.

Properties
NameDescription
NameThe name of the writer
Writer config type nameSystem name of write component
Character encodingThe default encoding to use1)
Indent
Write TypeShould type information be written
Null ValuesHow to write missing values (zero values)
Leere ListenDefinition der Ausgabe von leeren Listen
Leere Referenzen schreiben (null)Wenn angegen, dann werden leere Referenzen als '..:null' geschrieben
Change logsThe changes to the element are logged. The logging is activated in the System settings, which is possible if a versioning license is available.

Note: : If a data element is to be output as a JSON string array2) the data element itself must be defined as a complex type with a child element as a simple type. On the complex type the attribute ExportType with the value AsValueList must be defined. The child element inside is defined as a string and can have any3) name.

1)
Possible values are: [ascii][utf-7][utf-8][windows-1252][windows-1250][utf-16][iso-8859-1][1000-MAC Roman][ibm852][ibm855][ISO-2022-jp][cp850]
2)
JSON string array example:
["red", "green", "blue"]
3)
The data element name will not be visible in the created array.