Implement new ticket creation and returning newly created ticket in json format.