ACF save json to custom directory not working, default acf-json used instead

the two filters don’t have the same output. you can test that

add_filter('acf/json_directory', function ($path) {
    return get_template_directory() . '/config/acf-json';
});


add_filter('acf/settings/save_json', function ($path) {

    return apply_filters("acf/json_directory", NULL);

});

add_filter('acf/settings/load_json', function ($paths) {

    return [
        apply_filters("acf/json_directory", NULL)
    ];

});