support json format for packets in addition to tnetstring