titus.inspector.jsongadget.depthGreaterThan

titus.inspector.jsongadget.depthGreaterThan(obj, target)[source]

Helper function for determining if an object’s depth is greater than a given target.

A string, number, boolean, or null has depth 0, a list or dict of such objects has depth 1, etc.

Parameters:
  • obj (Pythonized JSON) – object to inspect
  • target (non-negative integer) – target depth
Return type:

bool

Returns:

True if the depth of obj is greater than target; False otherwise.