Added recursion function for printing JSON file