Is it possible to access section config with liquid?

This is the settings_data.json, and I want to access the field current->sections->announcement-bar->settings->height. I found I can access ‘site_desc’ field with ‘settings.site_desc’, but can not access announcement-bar height with ‘settings.sections.announcement-bar.settings.height’. Is is possible to access this field with liquid ? Thanks for your help !!!

{
“current”: {

“site_desc”: “this is an online store”,

“sections”: {

“announcement-bar”: {

“settings”: {

“height”: 40

}

}

}

}
}

Is it possible to access the. “sections” field in the settings_data.json file ???

could anyone give some advice ?? orz

Hi,
I hope you are doing good
No, you can’t access section settings like this
But you can access whole section by using sections api like your-url?sections=announcement-bar
and in this way you can parse whole section using javascript and use its settings
You can use fetch api to access whole HTML and parse it in custom javascript

I hope the above is useful to you.
Thanks!