Question to warn during json Transform path

hello,
I created a thing with json transformation

Thing http:url:pihole "pihole api" [ baseURL="http://pihole.fritz.box/admin/api.php", refresh=60, commandMethod="GET"] {
    Channels:
        Type number : PiHole_DomainsBeingBlocked "Domains being blocked [%d]" [mode="READONLY", stateTransformation="JSONPATH:$.domains_being_blocked" ]
}

But i get this

[WARN ] [.transform.SingleValueTransformation] - Executing transformation ChannelStateTransformation{pattern='$.domains_being_blocked', serviceName='JSONPATH'} failed: Invalid path '$.domains_being_blocked' in '[]'

But if i go to

http://pihole.fritz.box/admin/api.php

I get

{"domains_being_blocked":14837184,"dns_queries_today":21417,"ads_blocked_today":229,"ads_percentage_today":1.069244,"unique_domains":4872,"queries_forwarded":18811,"queries_cached":14,"clients_ever_seen":3,"unique_clients":3,"dns_queries_all_types":21417,"reply_UNKNOWN":6840,"reply_NODATA":2222,"reply_NXDOMAIN":349,"reply_CNAME":4467,"reply_IP":7006,"reply_DOMAIN":51,"reply_RRNAME":0,"reply_SERVFAIL":276,"reply_REFUSED":40,"reply_NOTIMP":0,"reply_OTHER":0,"reply_DNSSEC":0,"reply_NONE":0,"reply_BLOB":166,"dns_queries_all_replies":21417,"privacy_level":0,"status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1669264344,"relative":{"days":2,"hours":14,"minutes":57}}}

what I am doing wrong?

You appear to be getting an empty array in your response.

Perhaps OH doesn’t have the same access as your browser; perhaps the return is not just simple JSON

As @rossko57 points out, openHAB is seeing an empty response.

Not sure it’ll help, but my configuration is a little different, though not by much.

Yes, I see it I tested http://pihole.fritz.box/admin/api.php?gravity_last_updated and it shows empty response…but http://pihole.fritz.box/admin/api.php shows everything…