make sure the input is ready to be transformed into a ruby data structure