Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Feature request: format character 'a' to return arrays from json_unpack #47

Open
DanielT opened this Issue · 1 comment

2 participants

@DanielT

Currently I'm writing lots of code that looks like this:
if (json_unpack(input, "{so!}", "some_array", &the_array) == -1 ||
!json_is_array(the_array)) {
/* error handling code */
}

I would like to be able to use 'a' in place of the 'o' and not have to check if the returned json_t is an array or not.

@akheron
Owner

Sounds like a sensible idea. But if a format character for array is added, one should also be added for object, and both "o" and "O" are already taken :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.