fixed recursion loop for sample json