I\'m wondering if it\'s possible to execute some javascript inside an ld+json script. For example \"window.location.hostname\"
No, scripts of the type "application/ld+json" won't be executed. But, you could do something like this: