JSON String formatting Cobol
Posted: Wed Aug 11, 2021 4:12 pm
Hi all,
I would like to replace "true" by true and "false" by false in a JSON formatted string in Cobol.
For eg : a:"true" need to be replaced as a:true and b:"false" need to be replaced by b:false.
The replacement should happen for all occurences of "true" and "false" in the string .
Basically the requirement to send true or false values in string without being enclosed in quotes.
I would like to replace "true" by true and "false" by false in a JSON formatted string in Cobol.
For eg : a:"true" need to be replaced as a:true and b:"false" need to be replaced by b:false.
The replacement should happen for all occurences of "true" and "false" in the string .
Basically the requirement to send true or false values in string without being enclosed in quotes.