akheron/jansson — Issue #47: Feature: format character 'a' to return arrays from json_unpack
Author: DanielT
Created: 2012-01-03 22:01:39+00:00
State: open

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.