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

JSON Generate


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
makri

New User


Joined: 10 Aug 2021
Posts: 3
Location: india

PostPosted: Tue Aug 10, 2021 4:02 pm
Reply with quote

Hi all ,

We are using cobol version 6.1.0.

By using JSON Generate command , we are able to create JSON message but we wanted to know how we can have boolean values in JSON message.

Currently we are having string values and wanted to display them as boolean .

Please provide your inputs.
Back to top
View user's profile Send private message
makri

New User


Joined: 10 Aug 2021
Posts: 3
Location: india

PostPosted: Tue Aug 10, 2021 4:35 pm
Reply with quote

I wanted to know if there is any way to unquote the JSON string.
The string value need to be converted to boolean so that it is displayed without quotes.
Back to top
View user's profile Send private message
makri

New User


Joined: 10 Aug 2021
Posts: 3
Location: india

PostPosted: Wed Aug 11, 2021 4:23 pm
Reply with quote

Is there any way to replace the Boolean values in the JSON message without quotes ?

Currently it is displayed as a:"true" and b:"false" etc in the string.

Any way to replace "true" and "false" as true and false respectively.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts XML-GENERATE - atomic node with attri... COBOL Programming 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
No new posts XML Generate - suppression of complex... COBOL Programming 0
No new posts XML Generate issue COBOL Programming 0
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:


Back to Top