A direct link to a JSON-LD file does not work as desired, because the current logic of the command assumes it will be embedded in a <script> tag.
# This should work, but currently does not.
JSONLD https://vocabulary.uncefact.org/unlocode-vocab-context.jsonld
There are a multitude of potential fixes for this. As we already support -As, the most straightforward way is to construct a match when we find json content. This would allow us to get back content in both object and embeddable formats.
🎩 hat tip to @AniTexs for pointing this out via PR (#26)
A direct link to a
JSON-LDfile does not work as desired, because the current logic of the command assumes it will be embedded in a<script>tag.There are a multitude of potential fixes for this. As we already support
-As, the most straightforward way is to construct a match when we find json content. This would allow us to get back content in both object and embeddable formats.🎩 hat tip to @AniTexs for pointing this out via PR (#26)