Get value from input to json-object