Convert string OK response to json
removed unused pry