TJsonProtocol.containerSizeLimit

If positive, limits the number of items of deserialized containers to the given amount.

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.

Defaults to zero (no limit).

class TJsonProtocol(Transport = TTransport)
int containerSizeLimit;

Meta