JSON communication used instead of sending texts.