Implemented bidirectional communications with JSON data