How to specify type of script
Drupal core adds the text/javascript as default type.

You may include the file using drupal_add_js

drupal_add_js('file.js', array('attributes' =&gt; array('id' =&gt; 'my-template', 'type' =&gt; 'application/ld+json')));