Extract value_json from a Shelly1 Plus

Hello,

I’m tring to extract the boolean value (true or false) “output” from the “switch:0”. This is the response i receive from Shelly 1Plus (ShellyNG):

{"isok":true,"data":{"online":false,"device_status":{"switch:0":{"id":0,"output":true,"source":"SHC","timer_duration":3600,"timer_started_at":1690876841.58,"temperature":{"tC":32.74,"tF":90.93}},"v_eve:0":{"ev":"","ttl":-1,"id":0},"code":"SNSW-001X16EU","wifi":{"sta_ip":"10.100.32.84","status":"got ip","ssid":"Sodicentro Clientes","rssi":-76},"input:0":{"id":0,"state":false},"_updated":"2023-08-01 08:00:40","cloud":{"connected":true},"id":"4855199bab24","mqtt":{"connected":false},"sys":{"available_updates":{"beta":{"version":"1.0.0-beta6"}},"mac":"4855199BAB24","restart_required":false,"time":"08:59","unixtime":1690876787,"uptime":14,"ram_size":234808,"ram_free":160932,"fs_size":458752,"fs_free":102400,"cfg_rev":17,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0},"ws":{"connected":false},"serial":1690876841.57,"ble":[]}}}

Can someone gude me to the correct direction ?

Thanks in advance,
Sérgio

The response is coming from a HTTP call:

https://shelly-76-eu.shelly.cloud/device/status&auth_key=xxxxxxxxx&id=xxxxxxxxx

This is what i tried so far, but with no results:

value_template: '{{ value_json.data.device_status.switch.output }}'

Thank you!
Sérgio

I tried theis too:

value_template: '{{ value_json.data.device_status.switch[0].output }}'