将数据序列化为JSON格式,序列化操作完成后务使用Myfree()函数来释放内存voidJosn_format(){//cJSON构造方法cJSON*root=cJSON_CreateObject();cJSON_AddNumberToObject(root,"ADC1",Dev_data.ai1);cJSON_AddNumberToObject(root,"ADC2",Dev_data.ai2);cJSON_AddNumberToObject(root,"ADC3",Dev_data.ai3);cJSON_AddNumberToObject(r