json_object_object_add(object,"percent", (percent >0) ? json_object_new_double(percent) :NULL);//TODO:make urgency actually work once Sway supports itjson_object_object_add(object,"urgent",json_object_new_boolean(false)); json_object_object_add(object,"layout", (strcmp(layout,"null") ...