extending protocols (tcp and udp) through json calls