Is it feasible to run JavaScript code within an ld+json script? Like for instance, "window.location.hostname"
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "http://" + window.location.hostname
}
</script>