Hi All,
Based on my project requirements, I need to parse the JSON string into a COBOL copybook and do the functional processing on them.
For parsing this JSON data (which is in textpad now, and we can FTP to MF), we do have the required modules HWTJPARS/HWTJINIT in our library. But i have no clue how to use this in the cobol program.
Could you please advise with some program examples?
SET WS-JSON-ADDRESS TO ADDRESS OF WS-JSON-TEXT
CALL 'HWTJPARS' USING WS-RETURN-CODE
WS-PARSER-HANDLE
WS-JSON-ADDRESS
WS-JSON-LENGTH
WS-DIAG-AREA