IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JSON transform using CICS bundles vs. COBOL JSON PARSE


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Mon Dec 06, 2021 6:23 pm
Reply with quote

Hello,

I would like to get some advice on the following.

We have a requirement to connect to a REST API server from our mainframe (COBOL + CICS) online application. For this, we are exploring the built-in CICS JSON Web Services support option: www.ibm.com/docs/en/cics-ts/5.6?topic=services-creating-json-web-service-client-application. The REST API server requires the request to be in the form of querystring (which can be done with the CICS WEB CONVERSE/SEND command) and would return the response in JSON format (there are around 8-10 JSON response schemas).

The built-in CICS JSON Web Services option involves creating and installing bundles/mappings for each type of request and response, and then using these bundles to convert the application data to JSON and vice-versa. We are wondering if we can simply use COBOL JSON PARSE for parsing the application data out of the JSON response, rather than using the bundles. We think that creating the bundles/mappings (which in our case would be 8-10 mappings), packaging them to be delivered to our clients for them to install at their site, and maintaining the bundles (if there are any updates to the JSON response schemas) would be more complex than simply using COBOL JSON PARSE.

Are there any advantages of using the transform bundles over COBOL JSON PARSE?

If we use COBOL JSON PRASE instead of the transform bundles, would it not be RESTful? I don't think so but wanted to check.

Thank you,
Ankit Jain
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Tue Dec 07, 2021 3:48 am
Reply with quote

I think this questions should go to Solution Architect at your site. I can say CICS offers more capabilities under CICS JSON Web services for transformation which may look complex but fits the need.
www.ibm.com/docs/en/cics-ts/5.2?topic=applications-mapping-transforming-application-data-json
I have used when its MQ , COBOL Parsing for JSON but for your need it may or may not be suitable.
Back to top
View user's profile Send private message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Wed Dec 08, 2021 6:25 pm
Reply with quote

Thanks Rohit for your quick reply!

I got a reply in another forum that says, "The means by which you parse/process the message data has no bearing on whether or not your API is RESTful."

It further says, "Within the API client program that you write, you are free to use any technique that you wish to process the JSON message received from the server. If the EXEC CICS TRANSFORM facility provided by CICS isn't a good fit for your application, then use the COBOL PARSE verb. Other options are simply using INSPECT/UNSTRING COBOL statements or LINKing to a program coded in Java and use the class libraries for JSON data."

Therefore, we will be moving forward with using COBOL JSON PARSE here.

Thanks again,
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Thu Dec 09, 2021 3:20 am
Reply with quote

Looks righty , Good Luck 👍
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Associating a USERID with a CICS-Libe... CICS 0
No new posts omegamon for cics -UNSUPPORTED ENVIRO... CICS 2
Search our Forums:

Back to Top