z/OS Connect Enterprise Edition

 View Only

 Provider Output JSON created by COBOL program

Joe Scheck's profile image
Joe Scheck posted Thu January 08, 2026 04:49 PM

We are generating JSON output within out COBOL program before returning the response. We would like zCEE Provider to pass that along wihtOUT adding additional JSON around our output. 

Currently we have to map a copybook with a single field. Then zCEE modifies the output to add object name and element name and places our JSON into a string. that string must then have each embedded quote escaped.

We produce:

{"myJsonObject" { "myElementNm":"myValue" } }

zCEE modifies this to add the mapped copybook as JSON:

{"output" {"filler1": "{/"myJsonObject/" {/"myElementNm/":/"myValue/" } } } }

Has anyone found a way to map the output to simply return what was provided instead of requiring a structure?

We are generating the JSON output from within the COBOL program due to multiple and varying complex copybooks. COBOL JSON GENEATE handles this very easily. And we can produce multiple versions of the output JSON from within a single program based on our needs. 

We are using IMS transaction
We are still on version 2 (version 3 upgrade is planned)