Generate JSON from a generic Swift struct | Hacker News Reader