Re: Using DATA-GEN to generate JSON

David Gibbs via RPG400-L <[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <CAEStNX=ARVi1YAJe+tjY_46sQv6b6oDWobOm6X=_pAoj4O0iqQ@mail.gmail.com>
Are you passing an array length property in the data structure and
specifying the count prefix?


On Thu, Sep 11, 2025 at 5:23 PM <[email protected]> wrote:

> I have a multi-dimensional data structure (array) that I am trying to parse
> into a JSON string using DATA-GEN. The Generator is MDRFRAME(GENERATOR),
> basically YAGL.
>
>
>
> The data structure/array has nested arrays.
>
>
>
> When DATA-GEN executes, it crashes. From the error message, it is crashing
> on a unused array element. Only 1 message is reported in the job log where
> the  problem appears to be an unused array element in a nested array.
>
>
>
> I believe the generator should have ignored the unused elements.
>
>
>
> Does anyone have suggestions on how I can identify the problem?
>
>
>
> Thanks
>
>
>
> Darryl Freinkel
>
> A4G
>
> Telephone: 770.321.8562
>
>
>
> --
> This is the RPG programming on IBM i (RPG400-L) mailing list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/rpg400-l.
>
> Please contact [email protected] for any subscription related
> questions.
>
>
-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact [email protected] for any subscription related questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.