- if(!json_object_object_get_ex(appli, "public", &pub)
- || !get_jstr(appli, "path", &desc->path)
- || !get_jstr(appli, "id", &desc->tag)
- || !get_jstr(appli, "content", &desc->content)
- || !get_jstr(appli, "type", &desc->type)
- || !get_jstr(pub, "name", &desc->name)
- || !get_jint(pub, "width", &desc->width)
- || !get_jint(pub, "height", &desc->height)) {
+ if(!j_object(appli, "public", &pub)
+ || !j_string(appli, "path", &desc->path)
+ || !j_string(appli, "id", &desc->tag)
+ || !j_string(appli, "content", &desc->content)
+ || !j_string(appli, "type", &desc->type)
+ || !j_string(pub, "name", &desc->name)
+ || !j_integer(pub, "width", &desc->width)
+ || !j_integer(pub, "height", &desc->height)) {