JSON Data Type Support

JSON Data Type to COBOL Field Type Mapping

The following JSON schema types are supported in XML Thunder:

Image



Other Properties Supported

The following properties are supported and used for COBOL field size declaration as well as message validation:



Example

The table on the next page shows a sample JSON schema next to the corresponding COBOL copybook generated by XML Thunder.

ImageImage

BankID

TransitNbr

Accounts-Count

Accounts-Grp

HasAccounts and StateProvince



XML Thunder Toolset Support

The following screenshots show the XML Thunder Handler Design created from the above schema.

  1. Toolset defaults can be specified.  These are used when not specified by schema
  2.  

    Image

  3. BankId has min and max values captured.


  4. Image

  5. BankName has min and max length captured:


  6. Image

  7. HasAccounts treats boolean as string with enumeration values
  8.  

    Image

  9. StateProvince has schema enums captured
 

Image