All UI stuff finished, parses input into JSON