Search found 17 matches

by brianjgarland
Thu Oct 17, 2024 7:11 pm
Forum: YAJL-ILE
Topic: YAJL_GET_STRING maximum length
Replies: 2
Views: 30056

Re: YAJL_GET_STRING maximum length

Thanks Scott.

We've been using it longer than it existed because the clone that was created didn't have it.

I do see it in newer versions so we should be good to go.
by brianjgarland
Thu Oct 17, 2024 1:52 pm
Forum: YAJL-ILE
Topic: YAJL_GET_STRING maximum length
Replies: 2
Views: 30056

YAJL_GET_STRING maximum length

In the past we encountered a problem with a string over 65535 characters long because that is the maximum return parameter size for YAJL_GET_STRING.

A developer fudged a copy of YAJLR4 to return the pointer (str) instead of %STR(str). This of course resulted in a non-compatible version that got ...
by brianjgarland
Mon Aug 12, 2024 11:36 am
Forum: HTTPAPI
Topic: How to clear addn header values
Replies: 6
Views: 46352

Re: How to clear addn header values

That's the process I have used and it worked.
by brianjgarland
Wed Mar 08, 2023 10:30 pm
Forum: YAJL-ILE
Topic: DATA-INTO when entire JSON Document is an array
Replies: 5
Views: 19699

Re: DATA-INTO when entire JSON Document is an array

If in the future you need rel, you can just define it using dcl-subf inside your DS.
by brianjgarland
Fri Sep 23, 2022 10:30 am
Forum: HTTPAPI
Topic: WRITE JSON with EMBEDDED SQL in SQLRPGLE program
Replies: 3
Views: 10968

Re: WRITE JSON with EMBEDDED SQL in SQLRPGLE program

Hello,

You need to add DECEDIT(0,) to your H-spec or CTL-OPT statement.

https://www.ibm.com/docs/en/i/7.3?topic ... brun-value

Brian
by brianjgarland
Thu Mar 03, 2022 6:10 pm
Forum: HSSFR4
Topic: XLPARSER4 not "seeing" some cells
Replies: 1
Views: 44337

Re: XLPARSER4 not "seeing" some cells

For completeness: It turned out the person creating the sheet had to make a change to how they were creating the sheet as they were doing something wrong.
by brianjgarland
Thu Feb 24, 2022 7:37 pm
Forum: YAJL-ILE
Topic: Modify existing JSON
Replies: 3
Views: 8985

Re: Modify existing JSON

I don't have the full definition of the JSON so DATA-INTO is a problem.

I'm sure I can get the definition so that might be worth a try.

Thank you for the suggestion.
by brianjgarland
Thu Feb 24, 2022 4:15 pm
Forum: YAJL-ILE
Topic: Modify existing JSON
Replies: 3
Views: 8985

Modify existing JSON

I have a task where I need to read a database file that has a column that contains a JSON string. I will then execute code based on the value of a key in that string and then modify the value for that key and update the table. All that is pretty straightforward except for "modify the value for that ...
by brianjgarland
Tue Feb 15, 2022 12:30 pm
Forum: YAJL-ILE
Topic: Remove unwanted \ and \n in the JSON
Replies: 7
Views: 16954

Re: Remove unwanted \ and \n in the JSON

On yajl_genOpen that first parameter is whether or not to make the JSON "pretty". If you pass *OFF instead of *ON it will drop all the line feeds (\n) from the string.

You don't show how you added "OUT_JSON" to the JSON object in your code example but it looks like that may be where the \" is ...
by brianjgarland
Mon Feb 14, 2022 3:40 pm
Forum: YAJL-ILE
Topic: Remove unwanted \ and \n in the JSON
Replies: 7
Views: 16954

Re: Remove unwanted \ and \n in the JSON

The slash indicates an escape character. My guess is you added a string containing the { and what follows instead of adding those elements individually.

Can you share some code? Both how you build the JSON object and how you extract it into a string. That may help us determine what is happening.