yes but the tags are required by the google bot, so there is no chance to use your extension in this case
its doesnt matter if inline or as file, google just doesnt recognize it, it needs the full code with tags in the given order
are you using structured data ? please give it a try by yourself then you will see,
btw this topic shhould be moved to seo, right ?