Add torrent::to_json