You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A feature that I would find useful at the moment is the ability to unpack a given default value when the specified key is missing. You could add a double ? as a format specifier, and then expect two arguments instead of one, the second being the default to "unpack" instead of the missing value.
Something like this: int unpk = json_unpack_ex(my_object, &error, 0, "{s??i}", "foo", 42, &i);
The text was updated successfully, but these errors were encountered:
A feature that I would find useful at the moment is the ability to unpack a given default value when the specified key is missing. You could add a double
?
as a format specifier, and then expect two arguments instead of one, the second being the default to "unpack" instead of the missing value.Something like this:
int unpk = json_unpack_ex(my_object, &error, 0, "{s??i}", "foo", 42, &i);
The text was updated successfully, but these errors were encountered: