private static function build_array_of_assoc_arrays($value)
    {
        if (is_string($value)) {
            $value = Cloudinary::json_decode_cb($value, 'Cloudinary::ensure_assoc');
            if (is_null($value)) {
                throw new InvalidArgumentException("Failed parsing JSON string value");
            }
        }
        $value = Cloudinary::build_array($value);
        if (!self::is_array_of_assoc($value)) {
            throw new InvalidArgumentException("Expected an array of associative arrays");
        }
        return $value;
    }