Handle non-scalars in json_array_get