Add a little json api for fun and profit