Search found 878 matches
- Mon Jun 09, 2025 4:24 pm
- Forum: YAJL-ILE
- Topic: YAJLINTO handling varying number of array records
- Replies: 8
- Views: 10980
Re: YAJLINTO handling varying number of array records
I have implemented a temporary work around on this one (in case it helps anyone else in the future).
The program/API will only get called once per day so +nanoseconds extra run time is irrelevant.
I have reverted back to the code from my original post, but just before executing the data-into ...
- Mon Jun 09, 2025 4:14 pm
- Forum: YAJL-ILE
- Topic: YAJLINTO handling varying number of array records
- Replies: 8
- Views: 10980
Re: YAJLINTO handling varying number of array records
Hello,
First of all, please initialize your data structures. RPG has a "bad old feature" where it initializes everything in a data structure to *BLANKS unless you have the INZ keyword. Blanks in EBCDIC are hex x'40' or decimal 64. That is why you are getting a result of 64 in your INT(3) fields ...
First of all, please initialize your data structures. RPG has a "bad old feature" where it initializes everything in a data structure to *BLANKS unless you have the INZ keyword. Blanks in EBCDIC are hex x'40' or decimal 64. That is why you are getting a result of 64 in your INT(3) fields ...
- Sat Jun 07, 2025 12:14 am
- Forum: YAJL-ILE
- Topic: yajl_genStartMap
- Replies: 1
- Views: 6187
Re: yajl_genStartMap
Can you explain this better, please?
Where do you see these routines? What are you trying to do?
Where do you see these routines? What are you trying to do?
- Sat Jun 07, 2025 12:11 am
- Forum: YAJL-ILE
- Topic: parse error: premature EOF
- Replies: 8
- Views: 30755
Re: parse error: premature EOF
dcl-s jsonInput varchar(1000);
dcl-s docNode pointer;
jsonInput = '{ "nombre": "Juan", "edad": 30, "activo": true }';
docNode =
yajl_buf_load_tree(
%addr(jsonInput):
%len(%trimr(jsonInput)):
errMsg);
change %ADDR(jsonInput) to %ADDR(jsonInput:*data).
I would also remove the %trimr ...
- Sat Jun 07, 2025 12:06 am
- Forum: HTTPAPI
- Topic: HTTP Retrieval Erroring with HTTP400
- Replies: 2
- Views: 8962
Re: HTTP Retrieval Erroring with HTTP400
Hello,
Your post contained the userid/password for both your proxy and the site you're connecting to. I have removed them from your post, but they were visible here for a time. Please change them so that you are not vulnerable.
The error is 400 Bad Request. This means that what you are sending to ...
Your post contained the userid/password for both your proxy and the site you're connecting to. I have removed them from your post, but they were visible here for a time. Please change them so that you are not vulnerable.
The error is 400 Bad Request. This means that what you are sending to ...
- Tue May 13, 2025 3:46 pm
- Forum: HTTPAPI
- Topic: Query on OAuth and Authentication Token for Webservice API as a provider
- Replies: 1
- Views: 9761
Re: Query on OAuth and Authentication Token for Webservice API as a provider
Your question doesn't appear to have anything whatsoever to do with HTTPAPI.
You are using YAJL to work with the JSON messages... there is a YAJL forum here.
But, 99% of the work for creating your own OAUTH authentication server isn't formatting/interpreting JSON. That's like 1% of the work. You ...
You are using YAJL to work with the JSON messages... there is a YAJL forum here.
But, 99% of the work for creating your own OAUTH authentication server isn't formatting/interpreting JSON. That's like 1% of the work. You ...
- Tue Apr 29, 2025 7:41 pm
- Forum: HTTPAPI
- Topic: http_debug not creating log
- Replies: 1
- Views: 6736
Re: http_debug not creating log
I don't understand. Can you provide an example?
- Tue Apr 29, 2025 7:39 pm
- Forum: YAJL-ILE
- Topic: DATA-Into for JSON
- Replies: 6
- Views: 12672
Re: DATA-Into for JSON
This is not valid:
%parser('YAJLINTO' : '{"document_name": json_file_path} ');
This code makes no sense at all. It isn't valid JSON. I think your intent was to put the IFS pathname here, but... that isn't what this option is for. This is the name of the document element within your JSON, not a ...
%parser('YAJLINTO' : '{"document_name": json_file_path} ');
This code makes no sense at all. It isn't valid JSON. I think your intent was to put the IFS pathname here, but... that isn't what this option is for. This is the name of the document element within your JSON, not a ...
- Tue Apr 22, 2025 3:32 pm
- Forum: YAJL-ILE
- Topic: DATA-Into for JSON
- Replies: 6
- Views: 12672
Re: DATA-Into for JSON
Type this;
What does the message say?
Code: Select all
DSPMSGD CPE3025
- Sun Apr 20, 2025 9:25 pm
- Forum: YAJL-ILE
- Topic: Read Payload from IFS File to a string in RPGLE
- Replies: 5
- Views: 9117
Re: Read Payload from IFS File to a string in RPGLE
Let's start from the beginning of the discussion:
Trying to read a JSON payload from an IFS file to a string. But ContentLength comes as 0. Any thoughts on what am I missing?
Can you explain what is meant, here? Content-Length has no relationship to reading a file from the IFS. So there is ...
Trying to read a JSON payload from an IFS file to a string. But ContentLength comes as 0. Any thoughts on what am I missing?
Can you explain what is meant, here? Content-Length has no relationship to reading a file from the IFS. So there is ...