|
Thanks for the Json Info, that came in handy Brad. We user your eMail--
Tool all the time.
The main thing I was looking for was Jon's open access template code
in rpgle free , he has talk about at the summit. :)
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Bradley Stone
Sent: Tuesday, November 08, 2016 11:02 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Open Access - Json Template
John,
You can either use:
yajl_stdin_load_tree()
To read the JSON from a POST or if you prefer to do that yourself and
then
use:
yajl_buf_load_tree()
To load the JSON after reading in the data using QtmhRdStin.
I have a few examples of parsing and building JSON using YAJL here:
http://fieldexit.com/forum/thread?groupid=Prog&forumid=POC
There is on example of using QtmhRdStin to read the POST data where
the only limit is the size of data you can allocate here:
http://fieldexit.com/forum/display?threadid=142
I believe using yajl_stdin_load_tree() would be the best option. Once
you're done with that parsing is the same either way.
Brad
www.bvstools.com
On Tue, Nov 8, 2016 at 7:27 AM, Slanina, John <jslanina@xxxxxxxxxx> wrote:
Jon Paris,--
I am working on a proof of concept to handle to move all our JSON
Web service API's to the IBM I,
Do you have a template program for open access to handle JSON
over Http? I took you class at the summit, But not see good example
for handling Web service Traffic.
I will using Scotts JSON API's.
Thanks
John Slanina
slaninaj@xxxxxxxxxx
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
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.