Generate short URL and return JSON result