JSON: Add configurable depth limit.

The default is 32.