× 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.



Nope, yajl_saveBuf saves generated JSON. Unless it's been updated to do
otherwise.

What I did to save json as create a new function based
on yajl_stdin_load_tree() called yajl_stdin_loadandsave_tree() that does
the same, but has the option (if a filename is passed in) to save the JSON
read from Standard Input to the IFS.

Pretty simple to do. Scott has a lot of good IFS examples already in the
source you can use.

Or, if you ask nice, he may add something like that to the current
version. :) I know I've needed it. And it may already be there!

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #13 <https://www.bvstools.com/mailtool.html>: The ability
to use an IFS stream file as the body of the email (either text or html).

On Tue, Jul 23, 2019 at 9:52 AM Robert Rogerson <rogersonra@xxxxxxxxx>
wrote:

Hi Diogenes, I think you're looking for
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* yajl_saveBuf(): Copy YAJL generator buffer to IFS
*
* stmf = (input) path to stream file in IFS to save to
* errMsg = (output) error that occcured (if any)
*
* returns the YAJL generator status.
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Rob

On Tue, Jul 23, 2019 at 10:21 AM Diogenes Lora <gerrylora19@xxxxxxxxx>
wrote:

We are working with Web Services on the iSeries and JSON code is sent
INBOUND, our Web Service program parses the JSON and we do some things
with it.

We would like to save the JSON that is coming in to the IFS(as it is
received). This is using the POST method.

Any ideas how to get it done using Scott’s YAJL ?



Thank you,



Gerry
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.