fixed typing problems in assigning tcp_data to the json object