[PATCH 5/9] ch_monitor: Add pty json builder function