Transforming application data to JSON by linking to DFHJSON
The JSON transformer linkable interface DFHJSON is a CICS®-supplied program that can be called to perform transformation between application data and JSON. Your application program can transform application data to JSON by linking to DFHJSON.
Before you begin
You must have an enabled JSONTRANSFRM bundle resource that defines the JSON binding and JSON schema. If you intend to perform transformations by using Java™, you must have an Axis2 JVM server already running.
About this task
Create or update an application program to link to the CICS supplied program DFHJSON to do the transformation.
Procedure
Results
When the application runs the LINK command, CICS checks the JSONTRANSFRM bundle resource to find the mappings in the JSON binding and transforms the application binary data to JSON by using the containers on the channel. The JSON is placed in the DFHJSON-JSON container on return. The JSON conforms to the JSON schema that is defined in the JSONTRANSFRM bundle resource.
What to do next
You can also use the same mappings to transform JSON to application data. For more information, see Transforming JSON to application data by linking to DFHJSON.