JSON cards and text encoding

When an input card uses a native JSON schema, the text encoding of input data is determined automatically during map execution.

When an output card uses a native JSON schema, the text encoding of card output is determined during map definition. The allowed text encodings for output data are UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE.

Prior to Link 1.1.4, the output text encoding of a JSON card was selected by providing a rule on a text item component named “encoding”. The path of this component is encoding:<card name>. For example, the rule could be ‘=NONE’. In this case, UTF-8 is used. As another example, the rule could be ‘=”UTF-16LE”’. In this case, UTF-16LE is used.

In Link 1.1.4, the encoding item component was removed from native JSON schemas. The text encoding of an output card is now determined by selecting a UTF encoding for the Data Language card property. This card property is only applicable to output cards which use a native JSON schema which does not have the encoding item type. If no selection is made, UTF-8 is used for the output card. Previous maps and schemas which use the encoding item type remain valid.