Added sendAs mode for text or json