Fwd: YAJL, JSON and schemas
Dave <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CAEw=R=vb9gOm8EtPoxXPvMv6+n=QAwT0WXZNnM493kMQLX-1Aw@mail.gmail.com> |
---------- Forwarded message --------- From: Nathan Andelin <[email protected]> Date: Fri, 18 Feb 2022 at 20:46 Subject: Re: [WEB400] YAJL, JSON and schemas To: Web Enabling the IBM i (AS/400 and iSeries) <[email protected]> Prior to runtime: Use a tool like YAJLGEN to generate RPG data structures from JSON documents. Do the structures look right? During runtime: Assuming the schema is delineated in RPG data structures and perhaps other variables, you might monitor the movement of data values from the parser to the RPG variables. Monitoring could cover data type exceptions. After that, validate the RPG values against whatever data validation that might be appropriate. If your JSON is hard to read, a tool like the following can format it, and generate reports that break it down for you. http://rd.radile.com/rdweb/info3/iui20/main.html On Fri, Feb 18, 2022 at 3:31 AM Dave <[email protected]> wrote: > Hi, > > Of those of you who are using RPG to process json, what are you doing to > validate the json being read against a schema? > > Thanks > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400. -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.