eBiss 3

Hilfe & Dokumentation

User Tools

Site Tools


en:prozessdefinition:repositorien:schreibkomponenten:typen:json



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:

  • Indent: Indents the attributes for better readability.
  • Length of the object namespace: Defines whether and how the class name is to be written as a JSON root object.
    • Default: No root object is created
    • Short: The class name is created as a JSON root object.
    • Long: The full namespace is created as a JSON root object.

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

  • MapFormat(“yyyy-MM-dd”)

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.
en/prozessdefinition/repositorien/schreibkomponenten/typen/json.txt · Last modified: 2024/10/04 17:14 by 127.0.0.1