×
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.
This is beyond my ken. I am totally confused.
This is the code that I believe defines the JSON data for the example (I
do not see "success" as being a field in the JSON file.):
D list_t ds qualified
D template
D inv 5a
D date 8s 0
D name 25a
D amount 9p 2
D weight 9p 1
Here is the code from JSONREAD2.rpgle that I believe defines "success":
D result ds qualified
D success 1n
D errmsg 500a varying
D list likeds(list_t) dim(999)
Here is my current stream of thought: docNode has a value that looks to
me like a pointer to an address. There is a blank errMsg and therefore I
believe YAJL sees the data. Next, "node = YAJL_object_find(docMode:
'errmsg');" has 'errMsg' in apostrophes, which strikes me as odd so that
sent me down another rabbit hole. I changed 'errMsg' to errMsg and then
to result.success and those led to even more confusion.
On 9/8/2017 3:51 PM, Scott Klement wrote:
However you look at it, there is no field in the file named "success".
There was in my example that you copied it from, but there isn't a
field named "success" in your example. So asking YAJL for a field
named success will return *NULL... make sense?
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.