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