#include "json.h"json
#include "stdio.h"token
int main(int argc, char* argv[]){get
const char* data = "{\"version\":\"1.0\",\"message_type\":\"3\",\"account\":null}";string
json_object* jobject = json_tokener_parse(data);io
json_object* jtmp = NULL;object
json_bool ret = json_object_object_get_ex(jobject, "account", &jtmp);gc
if(ret != false) {di
const char* customer_id = json_object_get_string(jtmp);co
if (customer_id == NULL){data
printf("...\n");
}else{
printf("customer_id = %s\n", customer_id);
}
}
}