public static function encode_array_to_json($value)
    {
        if (is_null($value)) {
            return null;
        }
        $array = Cloudinary::build_array_of_assoc_arrays($value);
        return  Cloudinary::json_encode_cb($array, 'Cloudinary::encode_dates');
    }