[PATCH 04/10] ch_monitor: Add pty json builder function