Checks an arbitrary JSON document without a schema: no polluting key at any depth, a bounded depth and a bounded key count.
The value is returned unchanged on success; it is a check, never a transform.
the parsed document
what the document is, for the refusal and the log
optional maxDepth (12 by default) and maxKeys (4096)
maxDepth
maxKeys
{ ok: true, value } or a refusal
{ ok: true, value }
Checks an arbitrary JSON document without a schema: no polluting key at any depth, a bounded depth and a bounded key count.
The value is returned unchanged on success; it is a check, never a transform.