× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



---------- Forwarded message ---------
From: Nathan Andelin <nandelin@xxxxxxxxx>
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) <web400@xxxxxxxxxxxxxxxxxx>


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 <dfx1@xxxxxxxxxxxxxx> 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: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.