Get all primitive non-object values in the specified object hierarchy up to the specified depth.
Object from which to get the values
Max object depth to go down the tree
Get all primitive non-object values in the specified object hierarchy up to the specified depth.