Trying to develop smart input and reading JSON