json walk and ruby reference function call test