Construct writable outgoing JSON messages.