```
name:fengxin,passwd:123,num:1␍␊
Fatal exception (28): ␍␊
```
json_task( *pvParameters )
{
cJSON *json, *json_name, *json_passwd, *json_num;
const char *out =
"{\"name\":\"fengxin\",\"passwd\":\"123\",\"num\":1}";
json = cJSON_Parse(out); //解析成json形式
json_name = cJSON_GetObjectItem( json, "name" ); //获取键值内容
json_passwd = cJSON_GetObjectItem( json, "passwd" );
json_num = cJSON_GetObjectItem( json, "num" );
printf("name:%s,passwd:%s,num:%d\n",json_name->valuestring,
json_passwd->valuestring, json_num->valueint);
cJSON_Delete(json);
json = NULL;
vTaskDelete(NULL);
}
```