support JSON encoding for Message objects