TJsonProtocol.stringSizeLimit

If positive, limits the length of deserialized strings/binary data to the given number of bytes.

This is useful to avoid allocating excessive amounts of memory when broken data is received. If the limit is exceeded, a SIZE_LIMIT-type TProtocolException is thrown.

Note: For binary data, the limit applies to the length of the Base64-encoded string data, not the resulting byte array.

Defaults to zero (no limit).

class TJsonProtocol(Transport = TTransport)
int stringSizeLimit;

Meta