Cobol copybook transformation to XML

HI

Is there a way to do transformation of COBOL Copybook to XML to JSON in APIGEE…Can someone please provide pointers on the same?

There is no builtin policy today that parses a COBOL copybook payload and extracts the information and transforms it into XML or JSON. You will need to code an extension. Your options are:

  • Java callout
  • Python callout
  • Nodejs target

A Javascript callout might also work, but using JavaScript to handle an octet stream is more challenging.

1 Like

hi Dino, can you give example on COBOL copybook to json/xml Nodejs target

Hi Chaitanya, no I don’t have an example of how that might be done.

Good luck!