YAJL_GET_STRING maximum length

Discussions relating to the ScottKlement.com port of the open source YAJL JSON Reader/Generator. This includes the YAJL tool as well as the YAJLR4, YAJLGEN, YAJLINTO and YAJLDTAGEN add-ons from ScottKlement.com. http://www.scottklement.com/yajl/
Post Reply
brianjgarland
Posts: 17
Joined: Wed Jul 28, 2021 11:04 am
Location: Vermont, USA
Contact:

YAJL_GET_STRING maximum length

Post by brianjgarland »

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 left behind as the YAJLR4 project was updated. I want to bring this copy current.

I didn't see it in the change log but I am wondering if the 65535 limit was removed in YAJLR4 someplace that we missed.

If this limitation still exists, my plan is to get the latest and add a backward compatible change to allow larger strings. If I do that would you like to receive the update so it can be made in the base proejct?
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: YAJL_GET_STRING maximum length

Post by Scott Klement »

YAJL_GET_STRING_BUF has existed in YAJLR4 for many, many years to allow larger sizes to be returned.
brianjgarland
Posts: 17
Joined: Wed Jul 28, 2021 11:04 am
Location: Vermont, USA
Contact:

Re: YAJL_GET_STRING maximum length

Post by brianjgarland »

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.
Post Reply