first step for a ttyrec++ json format recorder