COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only

JSON PARSE wont parse object arrays :(

  • 1.  JSON PARSE wont parse object arrays :(

    Posted an hour ago

    I was writing a COBOL program which receive its operational parameters in JSON format but happens than when I started to test I started to get this message:

    IGZ0339W During execution of the JSON PARSE statement on line 23 of program XXXX, the value of JSON name/value pair
    with name "XXXX" at offset 999 was found to be incompatible with the matching data item.

    So I tried the example programs from here: https://www.ibm.com/docs/en/cobol-zos/6.4.0?topic=input-handling-json-arrays but they gave me the same result.

    Have you used JSON PARSE with object arrays successfully?

    Any help appreciated!



    ------------------------------
    Sergio Samayoa
    ------------------------------