Traverse JSON-like perl data structures