Add capability to allow the user to send messages in either plaintext or json format. Set the httpReadFormat and httpWriteFormat variables.