pub const DEPTH_MAX: usize = 128;Expand description
How deep a document may nest.
A reader walks a document with recursion, down the right hand edge to find a length and down everything to check one, so the depth a writer will produce and the depth a reader will accept have to be one number. It is the same limit RedisJSON has, which means a document that was legal there stays legal here.