Thanks Robert.
We use Enterprise COBOL 6.3 and the single response worked.
countryCode:FR
formStatusChangeReason:
id:XXX-XX-XXXX
signatureDate:2018-01-01
status:
type:AB
Was trying for array-->
01 inrec.
05 pic u(50)
VALUE '{"countryCode": "FR","formStatusChangeReason": "",'.
05 pic u(30)
value '"id-n": "XXX-XX-XXXX",'.
05 pic u(30)
value '"signatureDate": "2018-01-01",'.
05 pic u(30)
value '"status-c": " ","type-c": "AB"}'.
05 pic u(50)
VALUE '{"countryCode": "NJ","formStatusChangeReason": "",'.
05 pic u(30)
value '"id-n": "IXX-XX-XXXX",'.
05 pic u(30)
value '"signatureDate": "2022-01-01",'.
05 pic u(30)
value '"status-c": " ","type-c": "DA"}'.
05 pic u(736).
01 resp-rec.
02 RESP-ARRAY OCCURS 02 TIMES.
05 countryCode PIC X(02).
05 formStatusChangeReason PIC X(40).
05 id-n PIC X(12).
05 signatureDate PIC X(10).
05 status-c PIC X(01).
05 type-c PIC X(02).
JSON PARSE inrec INTO resp-rec WITH DETAIL
NAME resp-rec IS OMITTED.
display 'resp-rec written:'resp-rec.
display 'countryCode:' countryCode(1).
display 'countryCode:' countryCode(2).
display 'formStatusChangeReason:'formStatusChangeReason(1).
display 'formStatusChangeReason:'formStatusChangeReason(2).
display 'id:' id-n(1)
display 'id:' id-n(2).
display 'signatureDate:' signatureDate(1).
display 'signatureDate:' signatureDate(2).
display 'status:' status-c(1).
display 'status:' status-c(1).
display 'type:' type-c(1).
display 'type:' type-c(2).
during execution got below
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "countryCode" at offset 1.
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "formStatusChangeReason" at offset 21.
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "id-n" at offset 200.
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "signatureDate" at offset 320.
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "status-c" at offset 440.
IGZ0322I During execution of the JSON PARSE statement on line 394 of program JPARPGM, no data item matched JSON name "type-c" at offset 456.
countryCode:
countryCode:
formStatusChangeReason:
formStatusChangeReason:
id:
id:
signatureDate:
signatureDate:
status:
status:
type:
type: