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



I am under the impression it has to do with the fact that I am testing this
from the i and in am supplying the json input string via a column i get
out of a table. CCSID 37

This may not be the correct EBCDIC format it should be receiving.

Can someone help me confirm that I can provide the EBCDIC string format to
the program?

Jay

On Thu, Feb 7, 2019 at 3:13 PM Jay Vaughn <jeffersonvaughn@xxxxxxxxx> wrote:

i have the following code and trying to get this up and running (from a
working copy at a prior shop)... but yajl_get_string is returning
nothing... what should I look for?

EVAL jsoninp
JSONINP =
....5...10...15...20...25...30...35...40...45...50...55...60
1 '{"length":"121","string":"{\"env\":\"dev\",\"command\":\"GET'
61 '_LOAN_BORROWER\",\"payload\":[{\"loanNumber\":0000002428}]}"'
121 '} '
181 ' '

// load jSON object
g_docNode = yajl_buf_load_tree(%addr(jsonINP) + 2
:%len(%trim(jsonINP))
:g_errMsg);

return g_errMsg;


g_node = YAJL_object_find(g_docNode: 'env');
if yajl_is_false(g_node);
g_errMsg = 'Error - env Not Found In Input';
return g_errMsg;
endif;

g_environment = yajl_get_string(g_node);

Again, everything runs successfully until the last statement (and this
used to be working code on another box)... g_environment ends up with
blanks... what am I overlooking?

Jay


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.