Hi Esteban,

Here's some example code dealing with JSON, RPG and a web service call https://github.com/fathert/json-rpg-example I would encourage you to look at SQL as one way of doing what you want, SQL is so powerful these days it can be ridiculously easy to do stuff that in a traditional program might take dozens of lines of code.

Tim.



________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Cabero <cabero@xxxxxxxxxxxxx>
Sent: 23 January 2020 10:22
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WEB400] RPG JSON YAJL

Hello Tim.

Thank you, please could you point or supply me sample code.

Yours sincerely.
Esteban Cabero
https://eur05.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fcabero&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=naJz%2BrP%2B0zzgPjU4mcN9aCLgL5%2FyMFZO5wf2tpZfA6M%3D&amp;reserved=0
Cell: +27(0)843963122

On 2020-01-22 07:24 PM, Tim Fathers wrote:
...I'm curious as to why you'd use YAJL instead of embedded SQL to
create/consume JSON in RPG, which seems to me to be a better option?

Tim.

________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Cabero
<cabero@xxxxxxxxxxxxx>
Sent: 22 January 2020 18:18
To: WEB400@xxxxxxxxxxxxxxxxxx <WEB400@xxxxxxxxxxxxxxxxxx>
Subject: [WEB400] RPG JSON YAJL

Hello.

Please could someone point me to open source RPG using YAJL on a
simple
file with GET, PUT, POST and DELETE.

Thank you all for your assistance, you know who you are [1].
I have completed [2] the JSON [3] YAJL [4] GET [5] in Totally/Fully
Free
RPG [6], comments and corrections are welcome.
The data [7] is also provided for file/table SACADCP.

Please could you comment on my blog
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=I6X%2Fs4jTHEnLCtL%2FtDFVYG3Nu77uQnh5cHH4k9cp2%2Fs%3D&amp;reserved=0
[8]
as this is part of my SEO experiment.

Thank you.

Yours sincerely.
Esteban Cabero
https://eur05.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fcabero&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=naJz%2BrP%2B0zzgPjU4mcN9aCLgL5%2FyMFZO5wf2tpZfA6M%3D&amp;reserved=0
[9]
Cell: +27(0)843963122

Links:
------
[1]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2F2020%2F01%2Facknowledgements.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=T%2FI1hknn2Y8QpFgbEKHaWD7lpsiU4DpcLLE9wDKUhJg%3D&amp;reserved=0
[2]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2Fp%2Fsacascp-json-get.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=fB02a2L0qY8avYX21FqUZHeGolfHZW6mr7S8Bpuja7A%3D&amp;reserved=0
[3]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2F2020%2F01%2Fwhy-json.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358367469&amp;sdata=SMTWqijskx4qPRTpDBkOVFP8HXZKStcEVtckvVpiWgQ%3D&amp;reserved=0
[4]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2F2020%2F01%2Fwhy-yajl.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=6Gxc%2Bz59KR%2F1%2ByaIw%2B%2BIJ%2BGqq2lZpofSMozNXr9Szos%3D&amp;reserved=0
[5]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapis.blogspot.com%2Fp%2Frest_26.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=UHkVKxUVSxn0n847%2BdRwCjhBZFi1wbdvbJ6aonehwpQ%3D&amp;reserved=0
[6]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2Fp%2Ftotallyfully-free-rpg.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=C3Ph8gtXeHCA55dpLWCv0rBD86yeXUJ50mVb4hEe5fs%3D&amp;reserved=0
[7]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2Fp%2Fsacascp-data.html&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=zQs5YmdblTWm95b6uLkuHLa%2BvwuoOEy1jcP51Rpb3%2B8%3D&amp;reserved=0
[8]
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fibmrestapi.blogspot.com%2F&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=PimEcQAOXM9f4XjoYjrevAGZdJUxcTS1CRTdLZs0TMc%3D&amp;reserved=0
[9]
https://eur05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fcabero&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=rwNYMsgUbF1%2FcnnOJ0I%2BshcalCjCTY%2BK7JH1NOeK91w%3D&amp;reserved=0
--
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://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=CCKah1mvYshHDUnQ1kB%2BogwgQHuP6jjVo3O26SH84h8%3D&amp;reserved=0
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=pn%2FKXim%2B%2BsWMaiMvxsQ9ZzpRLAk146hc7bRy9kcZyp8%3D&amp;reserved=0.
--
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://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=CCKah1mvYshHDUnQ1kB%2BogwgQHuP6jjVo3O26SH84h8%3D&amp;reserved=0
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&amp;data=02%7C01%7C%7C9bbc304d655342ecf57c08d79fe5bc59%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637153681358377474&amp;sdata=pn%2FKXim%2B%2BsWMaiMvxsQ9ZzpRLAk146hc7bRy9kcZyp8%3D&amp;reserved=0.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.