Searched refs:sub_JSON (Results 1 – 1 of 1) sorted by relevance
766 cJSON *sub_JSON; in tcp_command_parse() local774 sub_JSON = cJSON_GetObjectItem(recvJSON , recv_paras[num].name); in tcp_command_parse()775 if (sub_JSON) { in tcp_command_parse()776 if ((sub_JSON->type != cJSON_String) || (sub_JSON->valuestring == NULL)) { in tcp_command_parse()777 log_err("parse json type error(%d) or null string \n", sub_JSON->type); in tcp_command_parse()781 if (strlen(sub_JSON->valuestring) > sizeof(recv_paras[num].valuestr)) { in tcp_command_parse()783 strlen(sub_JSON->valuestring), in tcp_command_parse()788 strcpy(recv_paras[num].valuestr, sub_JSON->valuestring); in tcp_command_parse()790 err_code = tcp_command_check(num, sub_JSON->valuestring); in tcp_command_parse()