defaultDecodeJsonbStringsMaxDepth top-level constant

int const defaultDecodeJsonbStringsMaxDepth

The default recursion depth for decodeJsonbStrings.

Chosen to accommodate realistic Postgres jsonb payloads with comfortable headroom while still keeping the worst-case stack/heap footprint bounded. Inputs nested deeper than this are returned unchanged from the point at which the budget is exhausted, rather than risking a stack overflow.

Implementation

const int defaultDecodeJsonbStringsMaxDepth = 64;