The use case is quite simple, I want to iterate over all values in an object (and possibly manipulate it, that is why the visitor function has access to the parent)
Array members will be visited individually.
The entire object tree will be visited in a depth first order
Array members will be visited individually.
The entire object tree will be visited in a depth first order
hope that answers your questions.