WIP: channel library JSON encoding.