I need to use the 'options' object that's in this json script
is there a way to extract it using jQuery or JavaScript?
I need to use the 'options' object that's in this json script
is there a way to extract it using jQuery or JavaScript?
Get the innerText of the script tag and then parse the JSON.
var options = JSON.parse(document.querySelector('script[data-drupal-selector="drupal-settings-json"]').innerText);