Search found 7 matches

by ray.marsh
Fri Aug 15, 2025 4:23 pm
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 4654

Re: YAJL_OBJECT_LOOP not working on second level group

The yajl_array_loop worked. Thank you.

I had tried it already but failed to reset the index parameter. When it failed I thought it was because return_message wasn't an array since it did not have [ ] in it. I was under the impression that square braces indicated a JSON array.
by ray.marsh
Wed Aug 13, 2025 10:15 pm
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 4654

Re: YAJL_OBJECT_LOOP not working on second level group

I appreciate you looking into this. I've tried several ideas and so far no luck.

There is a reason why I am using the "raw" YAJL APIs.

We have over a large number systems at V7R2 and they do not have the necessary pieces to use data-into. The compiler fails on data-into on the V7R2 release. From ...
by ray.marsh
Wed Aug 13, 2025 7:35 pm
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 4654

YAJL_OBJECT_LOOP not working on second level group

The YAJL_OBJECT_LOOP the body element works fine but does not work for the return_message element inside the body.
The YAJL_OBJECT_LOOP for the return_message returns nothing. The return_message pointer is not null.
The items pointer works fine in a YAJL_ARRAY_LOOP (not shown).

{
"statusCode ...
by ray.marsh
Fri Aug 08, 2025 7:15 pm
Forum: HTTPAPI
Topic: Sending JSON in the body of an HTTP request
Replies: 4
Views: 5115

Re: Sending JSON in the body of an HTTP request

That was it. Thanks again.
by ray.marsh
Fri Aug 08, 2025 6:09 pm
Forum: HTTPAPI
Topic: Sending JSON in the body of an HTTP request
Replies: 4
Views: 5115

Re: Sending JSON in the body of an HTTP request

That was the issue. Since the body JSON is fairly small I changed the variable definition to char(500) and cleared it before setting the value. Clearing shouldn't make any difference but I did it anyway.

Thank you very much.
by ray.marsh
Fri Aug 08, 2025 5:06 pm
Forum: HTTPAPI
Topic: Sending JSON in the body of an HTTP request
Replies: 4
Views: 5115

Sending JSON in the body of an HTTP request

The following code is producing this message: {"statusCode": 400, "body": "Not JSON"}

D HTTPAPI_VERSION...
D C CONST('1.23')
D HTTPAPI_RELDATE...
D C CONST('2008-04-24')

I have verified that the JSON is formatted properly and is present in the request variable at the time of the http call ...
by ray.marsh
Fri Aug 08, 2025 1:11 pm
Forum: HTTPAPI
Topic: How to add custom http headers
Replies: 3
Views: 9441

Re: How to add custom http headers

This is great information. Solved my issue with calling an AWS web-service that requires an API-Key.
Thank you very much.